Repository navigation
fix(global): report system-first Node.js and package manager in vp --version - #3697
Merged
fengmk2 merged 9 commits intoDec 6, 2026
Merged
Conversation
fengmk2
reviewed
Dec 5, 2026
fengmk2
reviewed
Dec 5, 2026
fengmk2
reviewed
Dec 5, 2026
…without running it
…rst-node # Conflicts: # crates/vp_global_cli/src/commands/env/mod.rs # crates/vp_global_cli/src/commands/version.rs
Member
|
@TheAlexLichter I’ll take over fixing the remaining issues and then merge. 🤟 |
…ns in vp --version
fengmk2
approved these changes
Dec 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
system_firstmode, whichVP_ENV_FORBIDDEN=1sets up, commands likevp packandvp installrun the system Node.js and package manager butvp --versionreported something else.With this PR,
vp --versionnow checks the shim mode first. Insystem_firstmode it reports the systemnodeand package manager, found the same way the commands find them (find_system_toolandPackageManager::from_system_executable). If no system tool is found, it keeps the old behavior. Theread_tool_versionhelper thatvp env currentandvp env execeach had a copy of is now shared, andvp --versionuses it too.