Skip to content

fix: put rustup's cargo ahead of /usr/local/bin - #76

Merged
fredericrous merged 1 commit into
mainfrom
fix/f144-cargo-path-first
Nov 29, 2026
Merged

fredericrous merged 1 commit into
mainfrom
fix/f144-cargo-path-first

Conversation

@fredericrous

Copy link
Copy Markdown
Owner

A Homebrew source build (herdr on 2026-11-27) left Homebrew rust in /usr/local/bin, ahead of rustup's shims, and that rust ignores each repo's rust-toolchain pin. With about 45 installed formulae listing rust as a build dependency, it will keep coming back, so this makes it harmless instead of trying to keep it out (decisions f144).

  • dot_zshenv.tmpl: move ~/.cargo/bin to the front of path.
  • dot_zprofile (new): the same move again, after macOS path_helper rebuilds PATH for login shells.
  • dot_claude/settings.json.tmpl: ~/.cargo/bin ahead of /usr/local/bin in Claude Code's PATH.

Verified on the laptop: with PATH starting /usr/local/bin:…:~/.cargo/bin, zsh -c, zsh -lc and zsh -lic all end up with ~/.cargo/bin first. The rendered templates match the live files. make check passes.

🤖 Generated with Claude Code

A Homebrew source build (herdr on 2026-11-27) leaves Homebrew rust in
/usr/local/bin, ahead of rustup's shims, and it ignores each repo's
rust-toolchain pin. ~/.cargo/bin now comes first in zsh (zshenv, and
zprofile after path_helper) and in Claude Code's PATH (decisions f144).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fredericrous
fredericrous merged commit 5229b88 into main Nov 29, 2026
2 checks passed
@fredericrous
fredericrous deleted the fix/f144-cargo-path-first branch November 29, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant