Repository navigation
Use the published patch for each locked Ruby platform - #2422
Conversation
Use the platform builds published for one fix across hosted and vendored installs. Match standalone hosted VEX to the locked builds and their registry checksums. Cover fresh frozen installs and rollback in Bundler.
PR SummaryHigh Risk Overview Hosted and vendored flows Vendored mode records Reviewed by Cursor Bugbot for commit 3d8f0bb. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3d8f0bb. Configure here.
…istry # Conflicts: # crates/socket-patch-cli/tests/e2e_redirect_gem_build.rs # crates/socket-patch-core/src/patch/redirect/mod.rs # crates/socket-patch-core/src/vendor/gem.rs
No textual conflict. A test main gained with the multi-release jar check builds vex_sources::Sources field by field, and this branch adds the hosted_gem_fixes field, so the merged tree did not compile and the merge queue dropped the PR. The test's initializer gets the new field, empty. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
[agent] The merge queue dropped this PR at 23:42Z: the merged tree did not compile ( Pushed Generated by Claude Code |
Add entries for the 64 changes merged since the first draft, replace the platform-gem entry with what main does since #2422, fold fixes for bugs that never shipped into the entries of their features, and state the release's known limitations (platform-locked gems, PDM, Yarn Plug'n'Play) at the top of the section. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Bundler can lock several platform gems for one dependency. Hosted and vendored scans now require a patch for each locked build from the same fix before changing its source. Each build has its own patch record, archive and SHA-256.
Standalone hosted VEX resolves the registry URL to the patch for each locked platform and checks the compact-index digest against its package reference and the checksum in the lock when present. An unresolved platform suppresses attestation for the gem. Vendored installs retain their per-platform patch records for offline verification.
The Nokogiri compatibility test exercises frozen installation in a fresh checkout, native extension loading, VEX patch identity and rollback. This also updates the previous platform selection work in #2257 for current main.
High-effort review found two additional cases. Ejecting from a platform member now preserves that member's identity, and a complete set of platform patches can be vendored when the only offered Ruby source belongs to another fix. Both cases have regression coverage.
Local validation passed all 80 Nokogiri checks on macOS arm64 using Ruby 3.4.10 and Bundler 4.0.15. A fresh checkout installed with the lock frozen, including after ejecting a platform member. The test checked platform-specific VEX identities, loaded native code and verified rollback. The workspace also passed the all-features Cargo check.
All 56 hosted Ruby installer integration cases also passed locally. The platform fixture now requires the exact set of per-platform VEX identities for both standalone and embedded VEX. A mismatched checksum on one locked platform suppresses attestation even with installed-file verification disabled.
After merging current main, 693 Ruby-related core tests, 56 hosted Bundler integration tests and 14 vendored installer tests passed. For a Ruby-only lock the manifest and lock must agree on the source. For a multiplatform lock the confirmed set contains only the builds that the lock actually selects.