GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(global): skip current packages on update by wyf027 · Pull Request #1596 · voidzero-dev/vite-plus

Conversation

@wyf027

@wyf027 wyf027 commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Skip vp update -g installs when the recorded global package version already matches the version resolved from npm.
  • Resolve the target registry version with the package's recorded Node runtime so checks match the package's managed environment.
  • Support npm view ... version --json outputs as strings, plain strings, and version arrays.

Fixes #1477
Related #1476

Test Plan

  • cargo fmt
  • cargo test -p vite_global_cli global_update --no-default-features
  • cargo test -p vite_global_cli updates_global_package_when_registry_version_differs_from_installed_version --no-default-features
  • cargo test -p vite_global_cli parse_npm_view_version --no-default-features
  • cargo test -p vite_global_cli --no-default-features --no-run
  • cargo clippy -p vite_global_cli --no-default-features -- -D warnings

Note: cargo test -p vite_global_cli --no-default-features aborts locally in the existing tests::unknown_argument_detected_with_pass_as_value_hint test with a stack overflow after the targeted tests pass.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liangmiQwQ reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@wyf027
fix(global): skip current packages on update
224dd80
@netlify

netlify Bot commented May 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 44082ff
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a09b6c9beb9d30008ba4a04
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed May 16, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 224dd80228

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_global_cli/src/cli.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@liangmiQwQ

liangmiQwQ commented May 16, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liangmiQwQ
liangmiQwQ reviewed May 16, 2026
View reviewed changes
Comment thread crates/vite_global_cli/src/commands/env/global_install.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

liangmiQwQ
liangmiQwQ reviewed May 16, 2026
View reviewed changes
Comment thread crates/vite_global_cli/src/commands/env/global_install.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

liangmiQwQ
liangmiQwQ reviewed May 16, 2026
View reviewed changes

@liangmiQwQ liangmiQwQ left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

When I made up #1477, I actually thought about a question: should we reinstall the packages installed with a different node version.

For example, you installed oxlint globally with [email protected], but now you are running vp update -g with [email protected]. For current vp, it will be re-installed.

The reason why I have this question is different nodes can have different installing behaviors, like engine.node compatibility checks or some post-install scripts.

By the way, I'm not the team, and there are several comments I left, please use this as a reference only.

/cc @fengmk2 What do you think of it?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fengmk2

fengmk2 commented May 16, 2026

Copy link
Copy Markdown
Member

@liangmiQwQ What you mentioned should be a new feature requirement, and you can open a new issue for discussion.

liangmiQwQ reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liangmiQwQ liangmiQwQ mentioned this pull request May 16, 2026
Prompt users whether to reinstall a package installed by a different node version in vp update -g #1598
Closed
@fengmk2

fengmk2 commented May 16, 2026

Copy link
Copy Markdown
Member

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed May 16, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 224dd80228

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_global_cli/src/cli.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@wyf027
fix(global): handle update review edge cases
ac4ed26
@wyf027

wyf027 commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review feedback in ac4ed26:

  • vp update -g now falls back to updating a package if the registry version lookup fails, instead of aborting the entire update.
  • Local/path package specs (., ./pkg, ../pkg, file:...) bypass the registry lookup so local global packages keep the previous reinstall behavior.
  • The skip check now compares both package version and the current target Node version. Packages installed with a different Node version are reinstalled under the current resolved Node version.
  • The version lookup/update path now uses the same resolved target Node version as the subsequent install.

Validation run locally:

cargo fmt
cargo test -p vite_global_cli global_update --no-default-features
cargo test -p vite_global_cli updates_global_package_when_registry_version_differs_from_installed_version --no-default-features
cargo test -p vite_global_cli updates_global_package_when_node_version_differs_from_target_version --no-default-features
cargo test -p vite_global_cli parse_npm_view_version --no-default-features
cargo test -p vite_global_cli test_is_local_package_spec --no-default-features
cargo test -p vite_global_cli --no-default-features --no-run
cargo clippy -p vite_global_cli --no-default-features -- -D warnings
git diff --check
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liangmiQwQ

liangmiQwQ commented May 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator
  • The skip check now compares both package version and the current target Node version. Packages installed with a different Node version are reinstalled under the current resolved Node version.

Maybe we need to discuss about it in #1598 first? I'm sorry I didn't explain about it in the original issue.

I agree on how you process this problem in this PR, really thanks for solving my issue!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wyf027

wyf027 commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Agreed that changing the cross-Node reinstall policy should be discussed in #1598. I adjusted the wording/implementation intent here: this PR keeps the existing behavior for packages installed under a different Node version (they still reinstall under the current resolved Node version) and only skips redundant reinstalls when the recorded package version and Node version both match. So #1598 remains the place to decide whether that behavior should change in the future.

liangmiQwQ reacted with thumbs up emoji liangmiQwQ reacted with heart emoji
All reactions
  • 👍 1 reaction
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 approved these changes May 17, 2026
View reviewed changes

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@leno23 Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fengmk2
Merge branch 'main' into fix/skip-up-to-date-global-update
44082ff
@liangmiQwQ liangmiQwQ mentioned this pull request May 17, 2026
feat(cli): spawn npm for global installation in parallel and refine output #1597
Merged
@fengmk2
fengmk2 merged commit 2fd446f into voidzero-dev:main May 17, 2026
37 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 fengmk2 mentioned this pull request May 19, 2026
release: v0.1.22: Security Patch, Parallel Global Install & Scaffold Polish #1637
Merged
fengmk2 added a commit that referenced this pull request May 19, 2026
@voidzero-guard @fengmk2
release: v0.1.22 (#1637)
12368da
Release vite-plus v0.1.22: Security Patch, Parallel Global Install & Scaffold Polish

A critical Vitest browser-mode security fix, parallel `vp add -g`
installs, a built-in oxlint rule to prefer `vite-plus` imports, and a
new `--git` switch for `vp create`.

### Highlights

- **Security**: bundled `vitest` bumped to `4.1.6` to address
[GHSA-2h32-95rg-cppp](GHSA-2h32-95rg-cppp)
(Critical, CVSS 9.6), an XSS to RCE chain via the `otelCarrier` query
parameter in Vitest browser mode
([#1633](#1633))
- **Parallel global install**: `vp add/install/update -g` now installs
packages concurrently with a progress bar and a `--concurrency` flag
(default 5)
([#1597](#1597))
- **Prefer vite-plus imports**: new bundled oxlint rule rewrites
`vite`/`vitest` imports to `vite-plus`, enabled by default in generated
and migrated `lint` configs
([#1408](#1408))
- **Git init on scaffold**: `vp create` learns `--git`/`--no-git`
(interactive prompt; auto-commits "Initial commit from Vite+")
([#1484](#1484))

### Features

- Spawn npm for global installation in parallel with a progress bar and
a `--concurrency` option
([#1597](#1597)), by
@liangmiQwQ
- Add bundled oxlint rule to prefer `vite-plus` imports over
`vite`/`vitest`
([#1408](#1408)), by
@Han5991
- `vp create`: initialize a git repository and create an initial commit
on scaffold
([#1484](#1484)), by
@ryohidaka
- `vp create`: rename underscore-prefixed files (`_gitignore`, `_npmrc`,
`_yarnrc.yml`) to dotfiles for `@org/create` bundled templates
([#1574](#1574)), by
@jong-kyung
- Add `VP_PR_VERSION` env var to install unreleased PR builds via
pkg.pr.new
([#1578](#1578)), by
@fengmk2

### Fixes & Enhancements

- Skip merging standalone `.oxfmtrc`/`.oxlintrc` config when the
`fmt:`/`lint:` key is already declared in `vite.config.ts` (fixes
duplicate-block regression in `vp create fate`)
([#1601](#1601)), by
@fengmk2
- Suppress the `VITE+ - The Unified Toolchain for the Web` banner for
`vp lint --lsp`, `vp fmt --lsp`, and `vp fmt --stdin-filepath` so stdout
stays a pure LSP / formatter stream
([#1619](#1619)), by
@fengmk2
- `vp create`: detect output directory when running in the current
directory
([#1606](#1606)), by
@jong-kyung
- `vp update -g`: skip installs when the recorded global package version
already matches the npm-resolved version, and tolerate string/array
outputs from `npm view ... version --json`
([#1596](#1596)), by
@leno23
- `vp create`: preserve single-segment project path in
`updateWorkspaceConfig`
([#1582](#1582)), by
@jong-kyung
- `vp env use`: keep the change session-scoped on Windows
([#1577](#1577)), by
@fengmk2
- `vp rebuild`: accept positional package names
([#1564](#1564)), by
@fengmk2
- Adopt the new vite-task error formatter; errors now print as `error:
<top-level>` plus `* <source>` chain lines, with bold-red highlight on a
TTY
([vite-task#390](voidzero-dev/vite-task#390)),
by @branchseer
- vite-task: forward `LOCALAPPDATA` so Node's compile cache stays
outside the workspace on Windows
([vite-task#389](voidzero-dev/vite-task#389)),
by @branchseer
- Bump vite-task to `c945cc0`
([#1628](#1628)), by
@branchseer

### Refactor

- Revert `vp pm plugin` command (per discussion in #1038)
([#1623](#1623)), by
@jong-kyung

### Docs

- Add `vitepress-plugin-llms` to the docs site so the published docs
include LLM-friendly outputs (`/llms.txt`)
([#1625](#1625)), by
@jong-kyung
- Refresh home stats for oxlint, vite, and vitest
([#1512](#1512)), by
@nozomee
- Mention `vp env doctor` in agent instructions
([#1603](#1603)), by
@leno23

### Chore

- Consolidate the upstream build chain into a single `pnpm build` script
(justfile recipe now just calls `pnpm build`)
([#1626](#1626)), by
@fengmk2
- Fix bootstrap-cli on Windows
([#1583](#1583)), by
@fengmk2
- Refresh trusted stack stats
([#1573](#1573),
[#1616](#1616)), by
@voidzero-guard[bot]
- Update GitHub Actions
([#1611](#1611),
[#1612](#1612)), by
@renovate[bot]
- Address zizmor findings in composite actions and the release workflow;
drop unused `actions-cool/issues-helper`
([#1630](#1630)), by
@Boshen
- Switch plain checkouts to `taiki-e/checkout-action`
([#1620](#1620)), by
@Boshen
- Switch release to a version-bump PR + push trigger flow
([#1575](#1575)), by
@Boshen
- Gate release publish on environment approval with a Discord notice
([#1571](#1571)), by
@Boshen
- Enable `cargo clippy` with `-D warnings`
([#1579](#1579)), by
@Boshen
- Drop unused `setup-node` from the version-check job
([#1600](#1600)), by
@fengmk2
- Add Void deploy workflows for the docs site
([#1590](#1590)), by
@fengmk2
- Add `--help` case to config snap tests for npm10/yarn1/yarn4
([#1585](#1585)), by
@jong-kyung
- Add `--help` case to publish snap tests for npm10/yarn1/yarn4
([#1584](#1584)), by
@jong-kyung
- Verify `.gitignore` and `.yarnrc.yml` in the new-vite-monorepo snap
([#1576](#1576)), by
@jong-kyung
- vite-task: bump pnpm to `11.1.2`
([vite-task#383](voidzero-dev/vite-task#383)),
by @branchseer
- vite-task: update lint-staged to v17
([vite-task#385](voidzero-dev/vite-task#385)),
by @renovate[bot]

### Bundled Versions

| Tool | Version | Source |
| --- | --- | --- |
| vite | `8.0.11` |
[`66f3194`](vitejs/vite@66f3194)
|
| rolldown | `1.0.0` |
[`ac5c710`](rolldown/rolldown@ac5c710)
|
| tsdown | `0.22.0` | [npm](https://npmx.dev/package/tsdown/v/0.22.0) |
| vitest | `4.1.6` | [npm](https://npmx.dev/package/vitest/v/4.1.6) |
| oxlint | `1.63.0` | [npm](https://npmx.dev/package/oxlint/v/1.63.0) |
| oxlint-tsgolint | `0.22.1` |
[npm](https://npmx.dev/package/oxlint-tsgolint/v/0.22.1) |
| oxfmt | `0.48.0` | [npm](https://npmx.dev/package/oxfmt/v/0.48.0) |

### New Contributors

Welcome to all new contributors! 🎉

@nozomee, @ryohidaka, @leno23

**Full Changelog**:
v0.1.21...v0.1.22

---

Merging this PR will trigger the release workflow.

---------

Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com>
Co-authored-by: MK <[email protected]>
@BrewTestBot BrewTestBot mentioned this pull request May 20, 2026
vite-plus 0.1.22 Homebrew/homebrew-core#283685
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@fengmk2 fengmk2 fengmk2 approved these changes
+1 more reviewer
@liangmiQwQ liangmiQwQ liangmiQwQ left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Skip packages which are up to date in vp update -g

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@wyf027 @liangmiQwQ @fengmk2
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.