Skip to content

fix(env): report npm-linked globals in which#1968

Merged
fengmk2 merged 6 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-env-which-npm-bin
Jun 28, 2026
Merged

fix(env): report npm-linked globals in which#1968
fengmk2 merged 6 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-env-which-npm-bin

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

The current vp env which only checks Vite+-managed global package metadata for non-core tools. That means binaries linked after an intercepted npm install -g, such as tsc, can run from ~/.vite-plus/bin but still report as not found.

This PR makes vp env which use BinConfig as the binary ownership source. Vite+-managed bins still resolve through package metadata, while npm-created links report the linked path and available package/node metadata.

🤖 Generated with Codex

@netlify

netlify Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 3c6904d
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a4106e6bff8990008ce4c08

@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: 91b67aefbd

ℹ️ 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/commands/env/which.rs
@liangmiQwQ liangmiQwQ marked this pull request as ready for review June 28, 2026 06:32
@liangmiQwQ liangmiQwQ marked this pull request as draft June 28, 2026 06:32
@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: 9a1fa391c0

ℹ️ 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/commands/env/which.rs
@liangmiQwQ liangmiQwQ marked this pull request as ready for review June 28, 2026 07:33

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@liangmiQwQ Love this "feature" 😄

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

vp-build-cache-monorepo, It looks like this snap test usually randomly fails.

@fengmk2

fengmk2 commented Jun 28, 2026

Copy link
Copy Markdown
Member

vp-build-cache-monorepo, It looks like this snap test usually randomly fails.

@wan9chi will follow up on it.

@fengmk2 fengmk2 merged commit a098dc0 into voidzero-dev:main Jun 28, 2026
62 of 64 checks passed
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