-
Notifications
You must be signed in to change notification settings - Fork 6
chore: Fixes breaking change log with goreleaser #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5931a2f
to
5ec75bd
Compare
5ec75bd
to
b929b7c
Compare
|
||
echo "Running breaking changes check comparing commits ${API_DIFF_OLD_COMMIT} and ${API_DIFF_NEW_COMMIT}" | ||
echo "Installing gorelease" | ||
go install golang.org/x/exp/cmd/gorelease@latest >/dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:FYI: Latest golang does have tools directive that allows us to define tools direclty in the go.mod.
See: golang/go#48429 (comment)
# Inputs: | ||
# API_DIFF_OLD_COMMIT: commit before the API changes to compare with. If not provided, script will fail with "unbound variable" error | ||
# API_DIFF_NEW_COMMIT: commit with the new API changes. If not provided, script will fail with "unbound variable" error | ||
# TARGET_BREAKING_CHANGES_FILE - file to save breaking changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does script do not have any inputs right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. The script now essentially uses the last release version (from extract-version.sh)
Script apart from printing breaking changes to file is also responsible in detection of major breaking change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Consider updating documentation to mention what tools we use etc.
right. Detection of breaking changes is evaluated by whether |
Super nice work @maastha Good to merge as we going to see potential new SDK releases today! |
Description
Fixes breaking change log with goreleaser.
Generated test changlog: https://github.com/mongodb/atlas-sdk-go/blob/89fdc186ed4b2c1c1b3c95559bfab03d3f67a291/tools/releaser/breaking_changes/v20241113004.md
Link to any related issue(s): CLOUDP-281143
Type of change:
Required Checklist:
make fmt
and formatted my codeFurther comments