Skip to content

Implements VOLTA_FEATURE_YARN=0#2057

Open
arcanis wants to merge 2 commits intovolta-cli:mainfrom
arcanis:patch-1
Open

Implements VOLTA_FEATURE_YARN=0#2057
arcanis wants to merge 2 commits intovolta-cli:mainfrom
arcanis:patch-1

Conversation

@arcanis
Copy link

@arcanis arcanis commented Jul 7, 2025

I'm implementing a version manager for Yarn, and Volta gets in the way: every call to node corrupts the PATH by shadowing the existing yarn binary.

In theory Volta should be smarter and only update the PATH for binaries it's sure to own (see #2053), but in practice this is likely to be a significant change and I doubt we have the bandwidth to land this kind of change medium term.

Instead, this PR implements a VOLTA_FEATURE_YARN=0 environment variable that, when set, will prevent Volta from shadowing the Yarn binary. Any wrapper meant to own the management of Yarn releases can then set this variable.

marion1407-art

This comment was marked as spam.

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