Skip to content

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

Open
TheAlexLichter wants to merge 1 commit into
mainfrom
feat/global-update-dist-tag
Open

fix(global): keep the installed version spec on global update#2249
TheAlexLichter wants to merge 1 commit 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 canceled.

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

@github-actions

github-actions Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

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

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

Copy link
Copy Markdown
Contributor

Native binary sizes (2776009)

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 +20.00 KiB (+0.19%)
vp (Linux x64) gzip -9 4.42 MiB 4.43 MiB +8.09 KiB (+0.18%)
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 +1 B (+0.00%)
vp (macOS ARM64) Binary 7.64 MiB 7.65 MiB +16.14 KiB (+0.21%)
vp (macOS ARM64) gzip -9 3.84 MiB 3.85 MiB +10.89 KiB (+0.28%)
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 +14 B (+0.00%)
vp (Windows x64) Binary 8.35 MiB 8.37 MiB +21.00 KiB (+0.25%)
vp (Windows x64) gzip -9 3.64 MiB 3.65 MiB +11.28 KiB (+0.30%)
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 +1 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 -2 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%)

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

1 participant