Skip to content

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

Open
lidel wants to merge 1 commit intoipdxco:mainfrom
lidel:fix/gorelease-version-flag
Open

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

Conversation

@lidel
Copy link
Copy Markdown

@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.
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.

1 participant