Repository navigation
Add an exported-API compatibility check to CI - #554
Closed
tony1233200 wants to merge 1 commit into
Closed
tony1233200 wants to merge 1 commit into
tony1233200 wants to merge 1 commit into
Conversation
Compare the current code against the latest non-prerelease release with gorelease, on pull requests and pushes to master. Fixes spf13#552.
|
|
Collaborator
|
See #553. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an exported-API compatibility check to CI
Fixes #552.
Following the discussion in #441 and the scope confirmed by @tomasaschan in #552, this adds a CI-only check that compares the current code against the latest non-prerelease release using
gorelease:master.v[0-9]*tag without a-suffix, currentlyv1.1.0), so it keeps working after the next release without editing the workflow.goreleaseversion (golang.org/x/exp/cmd/gorelease@v0.0.0-20261120130654-b6de8d37927a), leaving the library's Go 1.12 support unchanged.fetch-depth: 0so the release tags are available.Verification (local,
goreleaseat the same pinned version):gorelease -base v1.1.0on currentmaster(d77ebfa): passes, suggested versionv1.1.1.(*FlagSet).GetBoolin a scratch copy makesgoreleaseexit 1 and report(*FlagSet).GetBool: removed.go test -p 1 -count=1 ./...,go vet ./..., andgofmt -lare all clean.