Skip to content

fix(global): report system-first Node.js and package manager in vp --version - #3697

Merged
fengmk2 merged 9 commits into
voidzero-dev:mainfrom
TheAlexLichter:fix/version-system-first-node
Dec 6, 2026
Merged

fengmk2 merged 9 commits into
voidzero-dev:mainfrom
TheAlexLichter:fix/version-system-first-node

Conversation

@TheAlexLichter

Copy link
Copy Markdown
Member

In system_first mode, which VP_ENV_FORBIDDEN=1 sets up, commands like vp pack and vp install run the system Node.js and package manager but vp --version reported something else.

With this PR, vp --version now checks the shim mode first. In system_first mode it reports the system node and package manager, found the same way the commands find them (find_system_tool and PackageManager::from_system_executable). If no system tool is found, it keeps the old behavior. The read_tool_version helper that vp env current and vp env exec each had a copy of is now shared, and vp --version uses it too.

@fengmk2 fengmk2 self-assigned this Dec 5, 2026
…rst-node

# Conflicts:
#	crates/vp_global_cli/src/commands/env/mod.rs
#	crates/vp_global_cli/src/commands/version.rs
@fengmk2

fengmk2 commented Dec 6, 2026

Copy link
Copy Markdown
Member

@TheAlexLichter I’ll take over fixing the remaining issues and then merge. 🤟

@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests test: sfw labels Dec 6, 2026
@fengmk2
fengmk2 merged commit 8e04ee1 into voidzero-dev:main Dec 6, 2026
150 of 151 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: sfw

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants