mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-09-19 07:34:57 +08:00
7e3da77f21
The standalone installers report installing the latest version while `codegraph --version` can keep printing an old one. This is not a packaging bug: the released bundle's version is correct, but a *different* codegraph earlier on PATH runs instead — most often a stale `npm i -g @colbymchenry/codegraph`, whose shim execs its own version-pinned per-platform bundle, so it reports that old version forever and shadows the freshly-installed standalone bundle. install.sh and install.ps1 now detect this at install time and point at the shadowing copy with how to fix it (remove the other install, or reorder PATH). install.ps1 checks both the persisted PATH a fresh shell sees (Machine + User) and the live session PATH, to catch dirs a shell profile injects (conda/npm). Validated end-to-end on real substrate: install.sh in Docker (linux-arm64, dash + `set -eu`) and install.ps1 on a Windows 11 PowerShell 5.1 VM (win32-arm64) — each really downloads the bundle, wires PATH, and fires the warning, with PATH-resolved `--version` showing the old shadow while the fresh bundle reports the new version. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4.1 KiB
4.1 KiB