Skip to content

fix(global): reject foreign binaries before force-uninstalling conflicting packages - #3504

Merged
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/global-install-force-foreign-bin
Nov 20, 2026
Merged

fengmk2 merged 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/global-install-force-foreign-bin

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Problem

vp install -g --force uninstalled a package that owned a conflicting binary before it checked the new binary paths for files that Vite+ does not manage. When such a file existed, the installation was rejected after the uninstall. Neither the old package nor the new package remained, and the uninstall could not be rolled back.

For example, pkg-a owns shared, and pkg-b provides shared and foreign. If the bin directory already holds an unmanaged foreign file, vp install -g --force pkg-b removed pkg-a and then failed.

Fix

  • The unmanaged-file check now runs before conflicting packages are uninstalled, so a rejected installation leaves the existing packages unchanged.
  • Without --force, an installation with both an ownership conflict and an unmanaged file now reports the unmanaged file first. The installation is still rejected.

…cting packages

`vp install -g --force` uninstalled the conflicting package before it checked new binary paths for files that Vite+ does not manage. When that check rejected the installation, neither the old package nor the new package remained. The check now runs before conflicting packages are removed.
@jong-kyung jong-kyung self-assigned this Nov 20, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T07:44:51.346732Z 1e812e9 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jong-kyung jong-kyung added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Nov 20, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 1e812e9504

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

@jong-kyung
jong-kyung marked this pull request as ready for review November 20, 2026 07:42
@fengmk2
fengmk2 merged commit 7e3821b into voidzero-dev:main Nov 20, 2026
147 checks passed
@jong-kyung
jong-kyung deleted the fix/global-install-force-foreign-bin branch November 20, 2026 15:43
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants