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
@@ -713,6 +713,8 @@ done
|
|||||||
set --
|
set --
|
||||||
has "rustup leaves the shell files to chezmoi" "-y --no-modify-path" \
|
has "rustup leaves the shell files to chezmoi" "-y --no-modify-path" \
|
||||||
"$(grep 'rustup-init.sh.*-y' $D)"
|
"$(grep 'rustup-init.sh.*-y' $D)"
|
||||||
|
has "uv leaves the shell files to chezmoi" "UV_NO_MODIFY_PATH=1 sh" \
|
||||||
|
"$(grep 'astral.sh/uv/install.sh' $D)"
|
||||||
|
|
||||||
printf '\n\033[1mNerd Fonts are the release, per user, not fonts-powerline\033[0m\n'
|
printf '\n\033[1mNerd Fonts are the release, per user, not fonts-powerline\033[0m\n'
|
||||||
newbox; BOXPATH=$SEALSUDO; pick fonts/hack-nerd-font fonts/iosevka-nerd-font
|
newbox; BOXPATH=$SEALSUDO; pick fonts/hack-nerd-font fonts/iosevka-nerd-font
|
||||||
|
|||||||
@@ -1115,7 +1115,10 @@ install_bespoke() {
|
|||||||
fi ;;
|
fi ;;
|
||||||
core/uv)
|
core/uv)
|
||||||
if have uv && [ "$DRYRUN" -eq 0 ]; then say " uv already present — leaving it"; continue; fi
|
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)
|
agents/claude)
|
||||||
# Anthropic's native installer: a per-user install to ~/.local/bin
|
# Anthropic's native installer: a per-user install to ~/.local/bin
|
||||||
# that updates itself, which is what dev runs. Not npm -- that copy
|
# that updates itself, which is what dev runs. Not npm -- that copy
|
||||||
|
|||||||
Reference in new issue
Block a user