Skip to content

check-cli.sh:CLI 是包裝腳本而確實落後時,提示的 install 目的是那支腳本 (follow-up finding from #775) #792

Open

Description

@kiki830621

Problem

akashic-mcp plugin 的 SessionStart 檢查(plugin/hooks/check-cli.sh,#775)在 CLI 落後時會印出重建與安裝的指令,其中 install -m 755 … 的目的路徑就是它在 PATH 上找到的那個 akashic。

PATH 上的 akashic 若是一支包裝腳本(例如 #!/bin/sh 加上 exec akashic-real "$@"),而它呼叫的 binary 確實落後,hook 印出的 install 目的仍是那支腳本的路徑。照著做會用 binary 蓋掉腳本。

verify r2 的 L1 只修好了探測(包裝腳本現在拿得到使用者的 PATH,不再被報成執行失敗);Devil's Advocate 在 verify r3 實跑確認,落後那條路上原本描述的後果仍然成立。

Type

bug

Expected

擇一:

  • CLI 是以 #! 開頭的腳本時,提示不印目的路徑,改說「它是一支腳本,binary 要裝到腳本呼叫的位置」;
  • 或在 README 與 hook 檔頭寫明這條界線:提示假設 PATH 上的 akashic 就是 binary 本身。

Source: surfaced during /idd-verify #775 (PR #783) r3 follow-up finding — https://github.com/PsychQuant/Akashic-Library/pull/783#issuecomment-6767890572(LOW 表的 L6)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions