Commit 7eec1ed
authored
fix(release-check): pass -version to gorelease (#144)
Without -version, gorelease resolves the release candidate via MVS over
the module graph instead of reading the working tree. When a dependency
transitively requires an older version of the module being released
(e.g. boxo depends on go-libp2p-kad-dht, which depends on boxo), MVS
picks that older version as the candidate and the diff report comes out
inverted, flagging all symbols introduced in the current release as
"removed" and suggesting an unnecessary minor bump.
Passing -version (already computed and validated via semver earlier in
the workflow) forces gorelease to use the working tree as the candidate,
restoring correct base-to-head comparison.1 parent 307057d commit 7eec1ed
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
0 commit comments