Skip to content

fix(release-check): pass -version to gorelease#144

Merged
galargh merged 1 commit intoipdxco:mainfrom
lidel:fix/gorelease-version-flag
May 1, 2026
Merged

fix(release-check): pass -version to gorelease#144
galargh merged 1 commit intoipdxco:mainfrom
lidel:fix/gorelease-version-flag

Conversation

@lidel
Copy link
Copy Markdown
Contributor

@lidel lidel commented Apr 20, 2026

This PR fixes false-positive detection of breaking API changes which incorrectly suggested bump of version more than necessary.

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.

Example: libp2p/go-libp2p-kad-dht#1245 (comment)

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.

cc @galargh

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.
@galargh
Copy link
Copy Markdown
Member

galargh commented May 1, 2026

That's a great find! Thank you :)

@galargh galargh merged commit 7eec1ed into ipdxco:main May 1, 2026
46 checks passed
@galargh
Copy link
Copy Markdown
Member

galargh commented May 1, 2026

The fix is out now - https://github.com/ipdxco/unified-github-workflows/releases/tag/v1.0.40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants