diff --git a/.tests/test.sh b/.tests/test.sh index 4bccf8d..287978c 100755 --- a/.tests/test.sh +++ b/.tests/test.sh @@ -713,6 +713,8 @@ done set -- has "rustup leaves the shell files to chezmoi" "-y --no-modify-path" \ "$(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' newbox; BOXPATH=$SEALSUDO; pick fonts/hack-nerd-font fonts/iosevka-nerd-font diff --git a/dot_local/bin/executable_dotup b/dot_local/bin/executable_dotup index 1ea922c..55967a5 100755 --- a/dot_local/bin/executable_dotup +++ b/dot_local/bin/executable_dotup @@ -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