Skip to content

feat(installer): separate Node and package-manager preferences - #2681

Merged
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/installer-manager-env
Sep 13, 2026
Merged

feat(installer): separate Node and package-manager preferences#2681
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/installer-manager-env

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

The installer currently applies VP_NODE_MANAGER to both Node.js and every package manager. This PR limits that environment variable to Node.js while preserving the existing combined installation prompt and its behavior.

This PR adds VP_PM_MANAGER to set the preference for all package managers, with VP_NPM_MANAGER, VP_PNPM_MANAGER, VP_YARN_MANAGER, and VP_BUN_MANAGER overriding it for each family. yes selects Vite+ management; no selects system-first behavior. Explicit package-manager variables override the combined installer choice. With the script installers, a Node-only environment override preserves saved package-manager preferences. In-place upgrades keep existing settings.

The vp_installer crate keeps its existing options and forwards the resolved combined choice as both VP_NODE_MANAGER and the default for VP_PM_MANAGER. Explicit package-manager overrides are preserved. Interactive and silent installations use the same forwarding logic.

For example, VP_NODE_MANAGER=no VP_PM_MANAGER=no VP_PNPM_MANAGER=yes keeps Node.js and the other package managers system-first while letting Vite+ manage pnpm.

🤖 Generated with Codex

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-13T13:09:29.501460Z fee57fc Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea29c6665c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vp_installer/src/main.rs
Comment thread crates/vp_global_cli/src/self_setup.rs Outdated
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97dca64005

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vp_global_cli/src/commands/env/setup.rs Outdated
Comment thread crates/vp_global_cli/src/commands/env/setup.rs
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: fee57fceef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@liangmiQwQ
liangmiQwQ marked this pull request as ready for review September 13, 2026 13:18
@liangmiQwQ
liangmiQwQ requested a review from fengmk2 September 13, 2026 13:19
@fengmk2
fengmk2 merged commit becefea into voidzero-dev:main Sep 13, 2026
70 checks passed
@liangmiQwQ
liangmiQwQ deleted the liang/codex/installer-manager-env branch September 13, 2026 14:57
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