fix: uv installs without appending to the shell files chezmoi owns
astral's installer appended `. "$HOME/.local/bin/env"` to ~/.zshrc, so a fresh box showed .zshrc as modified right after the install. Same fix rustup already had, via UV_NO_MODIFY_PATH=1.
This commit is contained in:
1 parent
e7bc5fdaff
commit
c710e1934d
2 files changed
+6
-1
No files matched your search
@@ -1115,7 +1115,10 @@ install_bespoke() {
|
||||
fi ;;
|
||||
core/uv)
|
||||
if have uv && [ "$DRYRUN" -eq 0 ]; then say " uv already present — leaving it"; continue; fi
|
||||
run_sh "curl -LsSf https://astral.sh/uv/install.sh | sh" || note_fail "$key" "installer failed" ;;
|
||||
# UV_NO_MODIFY_PATH for the reason rustup gets --no-modify-path: the
|
||||
# shell files are chezmoi's, and astral's installer otherwise appends
|
||||
# `. "$HOME/.local/bin/env"` to ~/.zshrc -- drift on the next apply.
|
||||
run_sh "curl -LsSf https://astral.sh/uv/install.sh | env UV_NO_MODIFY_PATH=1 sh" || note_fail "$key" "installer failed" ;;
|
||||
agents/claude)
|
||||
# Anthropic's native installer: a per-user install to ~/.local/bin
|
||||
# that updates itself, which is what dev runs. Not npm -- that copy
|
||||
|
||||
Reference in new issue
Block a user