Skip to content

fix(cli): always append node path when spawning child pm process#2158

Open
BlankParticle wants to merge 3 commits into
voidzero-dev:mainfrom
BlankParticle:fix/always-add-node-to-path
Open

fix(cli): always append node path when spawning child pm process#2158
BlankParticle wants to merge 3 commits into
voidzero-dev:mainfrom
BlankParticle:fix/always-add-node-to-path

Conversation

@BlankParticle

Copy link
Copy Markdown

fixes #2157
there was a gated case where in case of Bun package manager, appending node to PATH was being skipped, so if the child bun process tried to spawn node process vp would see that its running inside of another vp process but as there is no node path appended, it would crash

I fixed this problem by always appending node path to the child pm
the only change is removing the Bun guard case, else if related cleanup, whitespace changes and added tests


I used Codex with GPT 5.6 Sol (High) to discuss and help me with setting up vite-plus locally and figure out how to write the test case

@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9fb01a7
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a538a00b0184e000838b6fc

@jong-kyung jong-kyung requested a review from liangmiQwQ July 12, 2026 11:41
@jong-kyung

Copy link
Copy Markdown
Collaborator

@codex review

Comment thread crates/vite_global_cli/src/shim/dispatch.rs Outdated

@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: 0e372e3837

ℹ️ 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/vite_global_cli/src/shim/dispatch.rs Outdated
@liangmiQwQ

Copy link
Copy Markdown
Collaborator

💜 I don't find other major problems, let Codex find whether there is any other edge case.

@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: c631fbe25b

ℹ️ 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/vite_global_cli/src/shim/dispatch.rs

@liangmiQwQ liangmiQwQ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since the other team members may be busy these days, I can’t make sure when your PR will be merged. Thanks for your contribution 💯

@liangmiQwQ liangmiQwQ requested review from fengmk2 and wan9chi July 12, 2026 12:43
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.

trying to use bun run with bun installed by vp causes vp: Recursion detected but no 'node' found in PATH error

3 participants