Commit 40112f7
Skip bundler self-checksum on ruby-core in test fixtures (#9506)
* Skip bundler self-checksum on ruby-core in test fixtures
In ruby-core test setup, bundler is loaded as a default gem and the
bundler.gem cache file is not present on disk where
LockfileGenerator#bundler_checksum looks for it. As a result, the
generator omits the bundler checksum from the regenerated lockfile,
while the test's checksums_section helper still adds it, making the
"does not change the lock" expectations in setup_spec.rb fail on
ruby-core CI for release branches (where Bundler::VERSION does not end
in .dev). Mirror the generator's give-up conditions in the helper so
that test fixtures and the regenerated lockfile stay in sync.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent ee558f2 commit 40112f7
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments