Skip to content

fix(windows): Rust/Cargo CLI・PATH の管理責任を実態と一致させる(棚卸しと是正) #161

Closed

Description

@rebuildup

実機調査(2026-11-04, Windows 11 native / device-windows)

既存 PR #150(draft, base release-0-7-0, powershell CI fail)・#154(CONFLICTING)・#155(CLEAN/緑、未統合)を確認済み。以下はその未統合・未配備部分を含む実機の実態。

発見

  1. orphan cargo shim 11 本: config 宣言は cargo:cargo-clean-all のみだが shim は just/rtk/llmfit 等が残存。各 shim は "No version is set for shim" で失敗 = CLI 実質未導入。4 本は stale install が mise ls に残る。
  2. 二重の rust owner: standalone rustup(%USERPROFILE%.cargo)と mise の rust entry(rustup へ symlink)。PR feat(rust): Windows の Rust toolchain も mise が管理する (#149) #150 の記述(.cargo\bin を User PATH から外し・旧 .rustup/.cargo 削除済み)は本機と一致しない = feat(rust): Windows の Rust toolchain も mise が管理する (#149) #150 は未配備。
  3. PATH 優先順位が実行経路依存: activated shell では mise 勝ち。非 activation(Scheduled Task / IDE / GUI / pwsh -NoProfile)では Program Files gh/node/nvim、Roaming\npm\claude.cmd、.bun\bin の codex/opencode、chocolatey rg が勝つ。
  4. .cargo\bin は registry PATH に無し(両方)、mise shims は User PATH のみ。
  5. 重複 claude: mise shim / ~.local\bin\claude.exe / Roaming\npm\claude.cmd の3経路。
  6. stale sidecar: config.toml 11-04 更新に対し .mise\locks は 11-01(apply-global-mise.ps1 の sidecar copy が追いついていない。fix(windows): make the machine-global mise apply work on Windows native #155 が本題)。

完了条件

  • fix(windows): make the machine-global mise apply work on Windows native #155 を先行統合(CI 緑・CLEAN。merge は既存 authorization boundary に従う)。
  • feat(rust): Windows の Rust toolchain も mise が管理する (#149) #150 を現行 main ベースに作り直し/更新し、powershell CI を緑に。orphan shim 11 本の扱い(mise.global.toml へ cargo: 宣言を追加するか削除するか)を ADR-0015 へ追記判断。cargo-compete / cargo-cleaner 等を含む全 Cargo CLI の棚卸し表(CLI / 解決先 / version / 所有者)を PR に添付。
  • PATH の所有ルールを文書化: activation 必須経路 vs registry PATH に置くべき最小集合。Program Files / npm / bun / chocolatey の重複のうち、削除して安全なものを安全性・復旧手順確認のうえ是正(削除しないものは理由を明記)。
  • platforms/windows-11/verify.ps1 で「どの実行ファイルが選ばれ、どの管理者に属し、正しい version か」を検証するセクションを追加し、実機で green。
  • feat(mise): install dsh through the machine-global mise config #154 の conflict 解消(main 側 lock 更新との整合)。
  • 非 activation 経路(pwsh -NoProfile 1 発火)でも mise 管理ツールが期待通りに解決されることを実機確認。

Activity

  1. rebuildup commented on Nov 4, 2026

    @rebuildup
    OwnerAuthor

    実機調査 evidence(2026-11-04, Windows 11 native)

    • orphan cargo shim 11 本: config 宣言は cargo:cargo-clean-all のみ、shim は just/rtk/llmfit 等が残存し全滅で "No version is set for shim"。4 本は stale install が mise ls に残存。
    • 二重 rust owner: standalone rustup(%USERPROFILE%\.cargo)+ mise rust entry(同 dir へ symlink)。.cargo\bin は User/Machine 両方の registry PATH に無し。mise shims は User PATH のみ。→ PR feat(rust): Windows の Rust toolchain も mise が管理する (#149) #150 記述の「.cargo\bin を User PATH から外し旧 dir 削除済み」は本機と不一致 = feat(rust): Windows の Rust toolchain も mise が管理する (#149) #150 未配備。
    • 非 activation 経路での shadowing: Program Files gh/node/nvim、~\.local\bin\claude.exe、Roaming\npm\claude.cmd、.bun\bin の codex/opencode、chocolatey rg。activated session では mise 勝ち。
    • stale sidecar: config.toml 11-04 / .mise\locks 11-01(fix(windows): make the machine-global mise apply work on Windows native #155 の主張どおりの症状を実機で確認)。
    • 配備元: pc-setup ~\src\pc-setup = branch local/p153-global-mise dirty 6 files。dotfiles は ~\.dotfiles(main, dirty 8 items)と ~\src\dotfiles(feat/editor-config)の2 checkout が併存。
    • 既存 scheduled task は vendor updater のみ(Adobe/NVIDIA/Vivaldi/Zoom)。pc-setup/mise/dotfiles 系0件。
  2. added a commit that references this issue on Nov 5, 2026
  3. rebuildup commented on Nov 23, 2026

    @rebuildup
    OwnerAuthor

    解決済みのためクローズします。Rust/Cargo の PATH 所有は mise に一本化され、platforms/windows-11/ の mise-path-ownership / powershell-path / verify(--version 実実行)が管理責任と一致しています(ADR-0021/0025)。残る User PATH 収束の欠陥は #174 / PR #232 で対応中です。

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions