Skip to content

fix(global): keep the installed version spec on global update - #2249

Open
TheAlexLichter wants to merge 5 commits into
mainfrom
feat/global-update-dist-tag
Open

fix(global): keep the installed version spec on global update#2249
TheAlexLichter wants to merge 5 commits into
mainfrom
feat/global-update-dist-tag

Conversation

@TheAlexLichter

Copy link
Copy Markdown
Member

Resolves #2247

At the moment, when vp installs global packages from a dist-tag or range (for example vp i pkg@nightly -g) it only records the resolved version, not the actual tag or range.

That means, vp up -g (re-)resolved every package against latest, silently replacing a tag like nightly with an older stable release.

This PR causes that global installs now record the version spec, and update/outdated resolve within it, meaning tags follow their channel, ranges stay in range, pins hold.

vp outdated -g reports Wanted vs Latest and warns if there is an unresolvable spec (e.g. a deleted dist tag).

vp update -g --latest explicitly moves packages back to latest and clears the recorded specs.

@netlify

netlify Bot commented Jul 25, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit b866697
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a69249890e8bb0008116191
😎 Deploy Preview https://deploy-preview-2249--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: b866697

@TheAlexLichter
TheAlexLichter force-pushed the feat/global-update-dist-tag branch from 44cccc1 to 2776009 Compare July 25, 2026 18:32
@github-actions

github-actions Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Native binary sizes (b866697)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.

Artifact Format Base PR Change
vp (Linux x64) Binary 10.31 MiB 10.33 MiB +24.00 KiB (+0.23%)
vp (Linux x64) gzip -9 4.42 MiB 4.43 MiB +9.75 KiB (+0.22%)
NAPI (Linux x64) Binary 33.07 MiB 33.07 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 12.72 MiB 12.72 MiB 0 B (0.00%)
vp (macOS ARM64) Binary 7.64 MiB 7.65 MiB +16.16 KiB (+0.21%)
vp (macOS ARM64) gzip -9 3.84 MiB 3.85 MiB +12.83 KiB (+0.33%)
NAPI (macOS ARM64) Binary 40.50 MiB 40.50 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 16.97 MiB 16.97 MiB -11 B (-0.00%)
vp (Windows x64) Binary 8.35 MiB 8.37 MiB +25.50 KiB (+0.30%)
vp (Windows x64) gzip -9 3.64 MiB 3.65 MiB +13.41 KiB (+0.36%)
NAPI (Windows x64) Binary 27.51 MiB 27.51 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 10.70 MiB 10.70 MiB +13 B (+0.00%)
Trampoline (Windows x64) Binary 203.00 KiB 203.00 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 97.91 KiB 97.91 KiB +1 B (+0.00%)
Installer (Windows x64) Binary 4.44 MiB 4.44 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.08 MiB 2.08 MiB 0 B (0.00%)

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

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

ℹ️ 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/cli.rs
Comment thread crates/vite_global_cli/src/commands/global/outdated.rs Outdated
Comment thread crates/vite_global_cli/src/cli.rs Outdated
Comment thread crates/vite_global_cli/src/commands/global/mod.rs
Comment thread crates/vite_global_cli/src/commands/global/outdated.rs
@liangmiQwQ

liangmiQwQ commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

I am thinking about whether it is related to #2256 🤔
This is more complex than I first thought. I will create separate PR based on this.

@voidzero-dev voidzero-dev deleted a comment from Codex AI Jul 26, 2026
@voidzero-dev voidzero-dev deleted a comment from Codex AI Jul 26, 2026
@voidzero-dev voidzero-dev deleted a comment from Codex AI Jul 26, 2026
@Codex

Codex AI commented Jul 26, 2026

Copy link
Copy Markdown

@TheAlexLichter Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub.

You can ask me to try again later by mentioning me in a new comment.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 000994f4-5dde-4cab-9747-91f29321dc19

Sorry for the inconvenience!

2 similar comments
@Codex

Codex AI commented Jul 26, 2026

Copy link
Copy Markdown

@TheAlexLichter Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub.

You can ask me to try again later by mentioning me in a new comment.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 000994f4-5dde-4cab-9747-91f29321dc19

Sorry for the inconvenience!

@Codex

Codex AI commented Jul 26, 2026

Copy link
Copy Markdown

@TheAlexLichter Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub.

You can ask me to try again later by mentioning me in a new comment.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 000994f4-5dde-4cab-9747-91f29321dc19

Sorry for the inconvenience!

@TheAlexLichter

Copy link
Copy Markdown
Member Author

Codex noooo

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

Codex noooo

oh, what happened?

Comment thread crates/vite_global_cli/src/commands/global/outdated.rs
Comment thread crates/vite_global_cli/src/commands/global/outdated.rs Outdated
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.

Vite-plus global bin installs doesn't store version range metadata

3 participants