Commit 6bce923
fix(release): bypass
Both prior v1.0.0 publish attempts (workflow runs 25679243892 and
25679904207) failed with:
You have already activated securerandom 0.2.2, but your Gemfile
requires securerandom 0.4.1.
Diagnosis: `rubygems/release-gem` calls `bundle exec rake release`
internally, with an attestation-patch loaded via RUBYOPT. That
patch (or something it requires) loads securerandom *before*
bundler resolves the Gemfile. Ruby 3.2.11 ships securerandom 0.2.2
as a default gem, which gets activated. Bundler then tries to
resolve to the newer securerandom that a transitive dep wants and
hits the activated-spec conflict.
Setting `bundler: latest` (PR #18) didn't help — same failure on
bundler 4.0.11. The conflict is a Ruby-runtime / default-gem issue,
not a bundler version issue.
Fix: do the build + push directly. Replace `rubygems/release-gem`
with `rubygems/configure-rubygems-credentials` (does the OIDC
handshake + writes ~/.gem/credentials), then `gem build` + `gem
push`. No `bundle exec` on the push path means no
default-gem activation, no conflict.
We lose the SLSA attestation that `release-gem` would have added —
worth picking back up later when the underlying tooling is less
fragile. For 1.0.0 the gem just needs to be on RubyGems.
Reverts the `bundler: latest` from PR #18 since it's no longer
needed (and pinning bundler when we don't need to is gratuitous).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>rubygems/release-gem to avoid bundler/securerandom clash1 parent 9c313c3 commit 6bce923
1 file changed
Lines changed: 18 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
| |||
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments