LIFEOS/TOOLS imports hooks/lib in 55 files, against the rule in Paths.ts, so those tools cannot load without the hooks tree

オープン
#2,864 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, typescript

調査の方向性

Read LIFEOS/TOOLS/Paths.ts and the imports in DAGrowth.ts, MemoryStatus.ts, and WorkSweep.ts, then inspect hooks/lib/identity.ts, work-config.ts, and lane-rules.ts. Start by checking the reported imports and the --no-hooks install path; verify the proposed move and re-exports work with the reproduction command. Done means TOOLS loads when hooks/ is absent and the Paths.ts dependency rule holds.

索引モデルが issue の本文から書いたものです。

説明

Summary

LIFEOS/TOOLS/Paths.ts:8-10 says TOOLS never depends on the hooks tree, because a TOOLS file
importing hooks/lib broke fresh installs between the DeployCore and InstallHooks steps
(#1974, #1968, #1955). On 94bd8f25, 55 files under LIFEOS/TOOLS import from hooks/lib, most
often identity.ts and work-config.ts. With LIFEOS/TOOLS on disk and hooks/ not there,
DAGrowth.ts fails to load. InstallAll.ts:216 offers --no-hooks for a user who declines hooks;
from reading the installer, that leaves the same state for good (not run end to end).

Where
  • LIFEOS/TOOLS/Paths.ts:10 (the rule)
  • LIFEOS/TOOLS/DAGrowth.ts:18, MemoryStatus.ts:27, WorkSweep.ts:43,46 (WorkSweep.ts:239 restates the rule)
  • hooks/lib/work-config.ts and hooks/lib/lane-rules.ts have no importer inside hooks/: 20 and 9 importers outside it
Repro
git grep -lE "from ['\"](\.\./)+hooks/lib/" HEAD -- LifeOS/install/LIFEOS/TOOLS | wc -l    # 55; Paths.ts implies 0
mkdir -p t/LIFEOS && cp -r LifeOS/install/LIFEOS/TOOLS t/LIFEOS/ && cd t && bun LIFEOS/TOOLS/DAGrowth.ts --help
# error: Cannot find module '../../hooks/lib/identity'
Fix

Root cause: the modules TOOLS needs from the hooks tree (identity, work-config, lane-rules) still
live in hooks/lib/, so the rule in Paths.ts holds only for the one resolver that was moved.
A general fix is to move them into LIFEOS/TOOLS/, as was done for Paths.ts, and leave
hooks/lib/* as one-line re-exports: the install-order break cannot come back, and work-config
and lane-rules then sit next to the code that uses them.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。