Commit 0ece67e
fix(github-binary): clean up cargo and apt versions before installing
Problem: Tools installed via cargo or apt conflict with GitHub binaries
- ripgrep 14.1.1 (cargo) at ~/.cargo/bin/rg
- ripgrep 14.1.0 (apt) at /usr/bin/rg
- Both block newer GitHub binary at ~/.local/bin/rg
Solution: Automatically clean up alternative installations before installing
Changes:
- Remove cargo-installed binaries from ~/.cargo/bin before installing
- Detect and remove apt-installed versions (requires sudo)
- Ensures GitHub binary takes precedence in PATH
This fixes cases where:
- `make upgrade` installs new version but old version still executes
- Multiple tool versions exist in different PATH locations
- Users see "before: X, after: X" (no update) despite successful install
Note: apt removal requires sudo and may fail silently if user doesn't
have passwordless sudo. In that case, manual removal required:
sudo apt remove <package-name>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e3bb4c2 commit 0ece67e
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
0 commit comments