GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(install): verify bun platform tarball against dist.integrity by jong-kyung · Pull Request #2301 · voidzero-dev/vite-plus

Conversation

@jong-kyung

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

Copy link
Copy Markdown
Collaborator

Summary

Bun platform downloads can now detect tarball corruption or mismatches before extraction by using the platform package's registry-provided dist.integrity. The shared metadata lookup keeps integrity verification and version-not-found handling consistent with the pnpm 12 native download flow.

Related: #2289

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jong-kyung
feat(install): verify bun platform tarball against dist.integrity
9ab65d0
Apply the same registry integrity verification the pnpm 12 native flow
uses to bun's @oven/bun-* platform tarball. The metadata fetch is
extracted into a shared fetch_platform_integrity helper used by both
flows; registries that omit dist.integrity keep the previous unverified
behavior.
@netlify

netlify Bot commented Aug 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9ab65d0
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a7015666a6eac0008ec3155
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung

jong-kyung commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung jong-kyung self-assigned this Aug 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 9ab65d01fb

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung
jong-kyung marked this pull request as ready for review August 3, 2026 04:37
@jong-kyung
jong-kyung requested a review from fengmk2 August 3, 2026 04:37
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Aug 3, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ab65d01fb

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_install/src/package_manager.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung

jong-kyung commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this — #2140 moved vite_install/src/package_manager.rs into vite_pm_cli, so this branch conflicts with the new layout. Will re-do the fix on top of main

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jong-kyung jong-kyung closed this Aug 3, 2026
@jong-kyung
jong-kyung deleted the fix/bun-dist-integrity branch August 3, 2026 10:33
@jong-kyung jong-kyung mentioned this pull request Aug 3, 2026
feat(pm): verify bun platform tarball against dist.integrity #2310
Merged
fengmk2 added a commit that referenced this pull request Aug 3, 2026
@jong-kyung @fengmk2
feat(pm): verify bun platform tarball against dist.integrity (#2310)
e642d04
## 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.

Co-authored-by: MK (fengmk2) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@fengmk2 fengmk2 Awaiting requested review from fengmk2

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jong-kyung jong-kyung

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jong-kyung
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.