6afed23aec (master): [ruby/rubygems] Prevent checksum for this test:

0 views
Skip to first unread message

Edouard CHIN

unread,
9:04 AM (10 hours ago) 9:04 AM
to ruby...@g.ruby-lang.org
Edouard CHIN 2026-03-26 13:25:11 +0000 (Thu, 26 Mar 2026)

New Revision: 6afed23aec

https://github.com/ruby/ruby/commit/6afed23aec

Log:
[ruby/rubygems] Prevent checksum for this test:

- ### Problem

This test breaks whenever checksums are computed. It didn't break
before because the gemfile in this test doesn't include any gems
(only git gems) and therefore checksum is skipped.

### Context

This test was added in https://github.com/ruby/rubygems/commit/c19a9f2ff71 to ensure Bundler will not load
"digest". I don't think this test really works as it will break
as soon as you had a regular gem in the gemfile test.
https://github.com/ruby/rubygems/blob/34d19fa8a3f84c50e2ba65e0f39c80045e7cbfb8/spec/runtime/setup_spec.rb#L1354-L1355

I'm being unlucky and it now fails because we compute a checksum
for the "bundler" gem itself. Computing a checksum requires
"rubygems/package", and down the line requires "digest".

### Solution

For the sake of shipping this PR, I'm going to go workaround the
problem and skip checksum so that "digest" is not loaded.

https://github.com/ruby/rubygems/commit/699b01159c

Modified files:
spec/bundler/runtime/setup_spec.rb
Reply all
Reply to author
Forward
0 new messages