Skip to content

fix(cli): skip local packages during global update#1961

Closed
liangmiQwQ wants to merge 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/skip-local-global-update
Closed

fix(cli): skip local packages during global update#1961
liangmiQwQ wants to merge 1 commit into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/skip-local-global-update

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

The current global update flow can treat packages installed from a local path or tarball like normal registry packages. That means vp update -g some-package may try to update a package that was originally installed from ./pkg.

This PR records whether a managed global package was installed from local filesystem content. Global outdated/update checks now skip packages with that metadata, including named updates like vp update -g some-package, which follows npm's behavior for local global installs.

Legacy metadata stays readable and defaults to non-local.

🤖 Generated with Codex

@netlify

netlify Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

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

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

This PR has some blockers (Vite+'s global alias bug, global packages version handling bug), and to follow npm's behavior there are tons of things need to deal with, npm itself's behavior is also strange, close it for now.

@liangmiQwQ liangmiQwQ closed this Jun 27, 2026
@liangmiQwQ liangmiQwQ deleted the liang/codex/skip-local-global-update branch June 27, 2026 06:57
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.

1 participant