Skip to content

feat: support HERMIT_PREPEND_PATH to prepend entries to PATH#563

Merged
alecthomas merged 3 commits intocashapp:masterfrom
stuartwdouglas:sdouglas/hermit-prepend-path
Apr 21, 2026
Merged

feat: support HERMIT_PREPEND_PATH to prepend entries to PATH#563
alecthomas merged 3 commits intocashapp:masterfrom
stuartwdouglas:sdouglas/hermit-prepend-path

Conversation

@stuartwdouglas
Copy link
Copy Markdown
Contributor

When HERMIT_PREPEND_PATH is set, its value is always prepended to the front of PATH after all other environment operations are applied. This allows users to ensure specific directories take precedence over Hermit-managed packages.

Changes

  • In allEnvarOpsForPackages, after all other env ops are assembled, check HERMIT_PREPEND_PATH and append a final Prepend op so it ends up at the very front of PATH.

stuartwdouglas and others added 3 commits April 21, 2026 12:16
When HERMIT_PREPEND_PATH is set, its value is always prepended to the
front of PATH after all other environment operations are applied. This
allows users to ensure specific directories take precedence over
Hermit-managed packages.

Amp-Thread-ID: https://ampcode.com/threads/T-019dadd0-6b25-732a-b210-b45c6404515a
Co-authored-by: Amp <amp@ampcode.com>
@alecthomas alecthomas merged commit db367e3 into cashapp:master Apr 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants