Skip to content

feat(pm): verify bun platform tarball against dist.integrity - #2310

Merged
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/bun-platform-integrity
Aug 3, 2026
Merged

feat(pm): verify bun platform tarball against dist.integrity#2310
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/bun-platform-integrity

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Re-does #2301 on top of the pm-cli consolidation (#2140), which moved vite_install/src/package_manager.rs into crates/vite_pm_cli and made the old branch unrebaseable.

  • The packageManager hash names the main bun npm package, so the platform tarball (@oven/bun-{os}-{arch}) was downloaded without any verification.
  • Extracts the registry dist.integrity lookup that the pnpm >= 12 native path already implements inline into a shared fetch_platform_integrity helper, and applies it to the bun platform tarball as well.
  • The pnpm >= 12 path now uses the same helper, so its behavior is unchanged.

Supersedes #2301.

The packageManager hash names the main bun npm package, so the platform
tarball was downloaded unverified. Extract the registry dist.integrity
lookup already used by the pnpm >= 12 native path into a shared helper
and apply it to the bun platform package as well.

Reworks voidzero-dev#2301 on top of the pm-cli consolidation (voidzero-dev#2140).
@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

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

@jong-kyung jong-kyung self-assigned this Aug 3, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 2e32b15d81

ℹ️ 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 August 3, 2026 10:38
@jong-kyung
jong-kyung requested a review from fengmk2 August 3, 2026 10:50
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: create-e2e Run `vp create` e2e tests labels Aug 3, 2026
@fengmk2
fengmk2 merged commit e642d04 into voidzero-dev:main Aug 3, 2026
115 of 146 checks passed
@jong-kyung
jong-kyung deleted the fix/bun-platform-integrity branch August 3, 2026 12:03
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants