Skip to content

uv-based run scripts fail because brew's uv isn't on PATH within the same chezmoi run #25

Description

@jdevera

Found during the fresh-macOS install documented in #20.

Problem

𖠿 Chezmoi Script: create symlinks for misc scripts
✓: misc scripts symlinked
chezmoi: .chezmoiscripts/typos_propagation.py: exec: "uv": executable file not found in $PATH

home/.chezmoiscripts/run_onchange_after_typos_propagation.py.tmpl uses a #!/usr/bin/env -S uv --quiet run --script shebang. During a fresh run, uv was just installed via Homebrew, but it isn't on PATH yet for the rest of the same chezmoi invocation. Opening a new shell and re-running worked, confirming it's a PATH-refresh problem.

Suggested direction

Ensure brew's bin dir is on PATH for the remainder of the run after Homebrew/uv is installed (e.g. eval "$(brew shellenv)" early, or run uv scripts via an absolute/command -v-resolved path). Any other script that depends on freshly-installed tools has the same exposure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bootstrapFresh-machine bootstrap / first-run setup

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions