Repository navigation
fix(uninstall): conserver la ligne PATH si ~/.local/bin sert à d'autres outils (T17.3, AC-R077) - #57
Merged
Merged
Conversation
…ient pas à d'autres outils uninstall.sh étape 3bis retirait la ligne exacte 'export PATH="$HOME/.local/bin:$PATH"' du rc dès qu'elle était présente. Or cette ligne est posée aussi par l'installateur de Claude Code (pas forcément par le bundle, le shim vivant souvent dans /opt/homebrew/bin), et ~/.local/bin contient just-code, claude, uv, vibe… Sur le poste de test, la retirer donnait 'command not found' pour tous ces outils dans tout nouveau terminal (AC-R077, T17.3). On ne propose plus le retrait que si ~/.local/bin est absent, vide, ou n'abrite que le shim albert-code du bundle (en-tête 'Shim pour albert-code', comme à l'étape 4bis). Sinon la ligne est CONSERVÉE avec un warn annonçant le nombre d'entrées et jusqu'à 5 noms d'exemple. Le cas 'ligne d'une autre forme' reste inchangé. test: cas C2 dans s77 (just-code dans ~/.local/bin → ligne PATH conservée + warn), 12/12 assertions. Registre AC-R077 / T17.3 rempli.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug (bloquant pour la bascule vers just-code) :
uninstall.sh(étape 3bis) retireexport PATH="$HOME/.local/bin:$PATH"du rc dès que la ligne est présente. Elle est aussi posée par l'installateur de Claude Code, et~/.local/bincontientjust-code,claude,uv,vibe…Repro (QA migration, 12/10) : poste avec le shim dans
/opt/homebrew/binet just-code installé dans~/.local/bin. Après l'uninstall,just-code: command not founddans tout nouveau terminal.Correctif : le retrait n'est proposé que si
~/.local/binest absent, vide, ou ne contient que le shim albert-code (même détection qu'en 4bis). Sinon, la ligne est conservée et un avertissement indique le nombre d'entrées, avec jusqu'à 5 noms.Test : nouveau cas C2 dans
tests/s77_uninstall.sh(just-codedans~/.local/bin→ ligne conservée + avertissement). 12/12 assertions OK, registre cohérent.Registre : AC-R077, T17.3.