You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1d6873
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: state/bundler.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Last run: 2026-11-25, main `e685fb1`, release 5.1.0, newest Bundler 4.1.0. Tested so far: Bundler 1.17.3, 2.3.27 to 2.6.9, 4.0.18, 4.0.24, 4.1.0 on Ruby 3.1.6, 3.2.6, 3.3.6.
4
4
5
-
Harness notes: the sandbox reaches rubygems.org but not the Socket patch API. Use the repo's own stand-in, `tests/nokogiri/patch_service.rb`: `PatchService.new(name, version, platforms, uuid, ghsa, workdir, mark)` appends `mark` to `lib/<name>.rb` of the real gems and serves the patches API, the index and the artifacts for ONE gem on a loopback port (org `nokogiri-e2e`). An empty platform list gives a ruby-platform patch; vendored mode then also needs a `gem-stub-gemspec` artifact (add it to `package_result` and serve the gem's `spec.to_ruby`). For several gems, a superseding patch or agent mode, put one loopback server in front of several instances: override each one's `url` with the front's, send a path that holds a uuid to that instance's `respond`, merge `batch` (filter by the body's `components`) and `package`, and serve `/v0/orgs/<org>/patches/blob/<git-sha256>` from `@before` / `@after`. With a path prefix stripped it is a patch mirror too (`--patch-mirror-url http://localhost:<port>/<prefix>`). Pass `--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2e` to every command. Rubies are in `/opt/rbenv/versions` (3.1.6: Bundler 2.3.27, 2.6.9; 3.2.6: 2.4.19, 4.0.18; 3.3.6: 2.5.22, 4.0.18, 4.1.0); `gem install bundler -v <v>` works. Select a Bundler with `BUNDLER_VERSION` (a lock's `BUNDLED WITH` can win). A realistic project: `gem install rails -v 8.0.2` into a scratch `GEM_HOME`, then `rails new app --skip-git --skip-bundle --skip-javascript --skip-hotwire --skip-docker`. A private mirror: `gem generate_index` plus `python3 -m http.server` (no webrick here). A release build takes 15 minutes. `vex` writes with `--output`; `remove` takes one purl. No Ruby 3.4 / 4.0 here.
5
+
Harness notes: the sandbox reaches rubygems.org but not the Socket patch API. Use the repo's own stand-in, `tests/nokogiri/patch_service.rb`: `PatchService.new(name, version, platforms, uuid, ghsa, workdir, mark)` appends `mark` to `lib/<name>.rb` of the real gems and serves the patches API, the index and the artifacts for ONE gem on a loopback port (org `nokogiri-e2e`). An empty platform list gives a ruby-platform patch; vendored mode then also needs a `gem-stub-gemspec` artifact (add it to `package_result` and serve the gem's `spec.to_ruby`). For several gems, a superseding patch or agent mode, put one loopback server in front of several instances: override each `url` with the front's, route a path that holds a uuid to that instance's `respond`, merge `batch` (by the body's `components`) and `package` (by `uuids`), and serve `/v0/orgs/<org>/patches/blob/<git-sha256>` from `@before` / `@after`. With a path prefix stripped it is a patch mirror too (`--patch-mirror-url http://localhost:<port>/<prefix>`). Pass `--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2e` to every command. Rubies are in `/opt/rbenv/versions` (3.1.6: Bundler 2.3.27, 2.6.9; 3.2.6: 2.4.19, 4.0.18; 3.3.6: 2.5.22, 4.0.18, 4.1.0); `gem install bundler -v <v>` works. Select a Bundler with `BUNDLER_VERSION` (a lock's `BUNDLED WITH` can win). A realistic project: `gem install rails -v 8.0.2` into a scratch `GEM_HOME`, then `rails new app --skip-git --skip-bundle --skip-javascript --skip-hotwire --skip-docker`. A private mirror: `gem generate_index` plus `python3 -m http.server` (no webrick here). A release build takes 15 minutes. `vex` writes with `--output`; `remove` takes one purl. No Ruby 3.4 / 4.0 here.
6
6
7
7
## Coverage matrix
8
8
@@ -26,11 +26,11 @@ A cell is `pass` with the Bundler versions and the date, `fail #N`, `n/a`, or `u
26
26
| Monorepo: several Gemfiles, nested projects, scan from the repo root | one project by design; from the root it names the projects and the `--cwd` to use (11-19) | pass 4.1.0: 3 Gemfiles, scan, frozen installs, `list`, rollback from the root (11-16) | pass 4.0.18: scan, `list`, rollback from the root (11-14); two locks with different platform sets 2.5.22: one wired, one refused, remedy, rollback from the root (11-20) |
27
27
| Gem library project (`gemspec` in the Gemfile), runtime and development dependencies patched | pass 4.0.18, 2.5.22: all gems, rollback (11-19) | runtime dependency vendored, frozen install, rollback; development dependency refused (#2151 fixed, not re-run) | runtime dependency: transitive line, frozen install, rollback byte-exact; development dependency refused (#2151 fixed, not re-run) |
28
28
| A second rubygems source (private gem server) beside patched gems; a private mirror as the only `source`|`source … do` block: pass 4.0.18 (11-19); a gem the private server rebuilt is refused (11-25, messages: #2231) | block: pass 4.0.18: frozen install, `vex`, rollback (11-19); mirror untested | block: pass 4.0.18 (11-19); two top-level `source` lines: #2162 fixed, not re-run; mirror as the only source, 4.0.18 and 2.5.22: scan passes, `rollback` / `remove` cannot undo it, fail #2230|
29
-
| Patched gem that is also a default gem of the running Ruby (base64 0.2.0, json 2.7.2 on 3.3.6) | pass 4.0.18: json rebuilt, `vex`, rollback tree byte-exact (11-19) | pass 4.0.18: base64 vendored, json refused as documented, rollback (11-19) | pass 4.0.18: `vendor/bundle` and an empty `GEM_HOME`, `vex`, rollback (11-19) |
29
+
| Patched gem that is also a default gem of the running Ruby (base64 0.2.0, json 2.7.2 on 3.3.6) | pass 4.0.18(11-19) | pass 4.0.18: json refused as documented(11-19) | pass 4.0.18 (11-19) |
30
30
| Appraisal-style `gemfiles/*.gemfile` (`BUNDLE_GEMFILE`) | pass 4.0.18 (11-24) | refused with a remedy under `BUNDLE_GEMFILE`; a root scan vendors the root pair only (11-24) | refused with a remedy under `BUNDLE_GEMFILE`; a root scan wires the root pair only, the appraisal lock still installs (11-19) |
31
31
|`bundle install --standalone` (Bundler 4, `./bundle`) | pass 4.0.18 (11-24) | pass 4.0.18 after a re-run of `--standalone` (11-24) | known non-bug |
32
-
|`setup` and the Bundler plugin it installs | n/a: removed in v5; `gem_bundler_plugin_stale` detection untested| n/a | n/a |
33
-
| A newer patch (new uuid, same gem version) supersedes the recorded one on a re-scan | pass 4.0.18: a file only the old patch changed is restored, rollback tree byte-exact (11-19) | pass 4.0.18: artifact dir replaced, frozen install, rollback (11-16); #2129 fixed, not re-run | pass 4.0.18: Gemfile source, lock remote, CHECKSUMS and the installed copy all move, rollback byte-exact (11-16) |
32
+
|`setup` and the Bundler plugin it installs | n/a: removed in v5 | n/a | n/a |
33
+
| A newer patch (new uuid, same gem version) supersedes the recorded one on a re-scan | pass 4.0.18(11-19) | pass 4.0.18 (11-16); #2129 fixed, not re-run | pass 4.0.18: Gemfile source, lock remote, CHECKSUMS and the installed copy all move, rollback byte-exact (11-16) |
34
34
| Gemfile declaration shapes (23: multi-line, modifiers, blocks, tabs, CRLF, `=begin`, `__END__`, …) | n/a (agent does not edit the Gemfile) | refused shapes are documented, not re-run | pass 4.0.18: scan, frozen install, lock stable, app, rollback byte-exact for each (11-16) |
| Switching modes on one project | hosted to agent pass 4.0.18 (11-15); agent to hosted, native gem too (11-18), precompiled ffi / sqlite3 (11-20); agent to vendored and rollback, tree byte-exact (11-19); vendored then agent for a refused gem (11-16) | hosted to vendored and rollback: upstream install back, `pristine` passes (11-18); `get <purl> --mode vendored` over one of three hosted gems, then `remove`, `vendor --revert`, `rollback --offline` pass 4.0.18 (11-18); the same for a precompiled platform gem passes (#2174 fixed, 11-24); one gem per mode on one project, `remove` of each (11-24); vendored to hosted is refused with a remedy (11-20) | hosted beside vendored gems installs and attests 4.0.18, 4.1.0 (11-16); superseding patches for both halves, `vex`, rollback pass (11-18); #2090 fixed, not re-run |
0 commit comments