Skip to content

fix(pm): prevent concurrent installs from exposing unfinished shims - #3248

Merged
fengmk2 merged 4 commits into
voidzero-dev:mainfrom
jong-kyung:fix/package-manager-atomic-install
Oct 27, 2026
Merged

fengmk2 merged 4 commits into
voidzero-dev:mainfrom
jong-kyung:fix/package-manager-atomic-install

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Summary

Concurrent commands could execute a package manager shim before its executable permissions were set. Installers held a lock, but cache readers bypassed it and treated file existence as readiness.

Prepare shims and their permissions in the temporary directory before moving the installation to its final location. This covers JavaScript package managers, Bun, and native pnpm while preserving the existing installation lock and completeness recheck.

Create package manager shims and set their executable permissions in the
temporary directory before publishing the installation. Keep the existing
lock and post-lock completeness check for concurrent installers.

Cover JavaScript package managers, Bun, and native pnpm with a regression
test that checks shim readiness whenever the final directory is visible.
@jong-kyung jong-kyung self-assigned this Oct 27, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T05:58:37.079221Z
We couldn’t complete this review. Comment @codex review to try again.
7449583 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 the test: install-e2e run vite install e2e test label Oct 27, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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

Copy link
Copy Markdown
Collaborator Author

@codex review

@jong-kyung
jong-kyung marked this pull request as ready for review October 27, 2026 05:57
@jong-kyung
jong-kyung requested a review from fengmk2 October 27, 2026 05:57
@fengmk2
fengmk2 merged commit f26f13b into voidzero-dev:main Oct 27, 2026
74 checks passed
@jong-kyung
jong-kyung deleted the fix/package-manager-atomic-install branch October 27, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants