Skip to content
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

Update pipeline and linter #2940

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update pipeline and linter #2940

wants to merge 3 commits into from

Conversation

sgagniere
Copy link
Member

@sgagniere sgagniere commented Nov 14, 2024

Release Notes

Breaking Changes

  • PLACEHOLDER

New Features

  • PLACEHOLDER

Bug Fixes

  • PLACEHOLDER

Checklist

  • Leave this box unchecked if features are not yet available in production

What

  • Clone the golang-fips/go release matching the current .go-version in the pipeline to catch currently unsupported go versions
  • Compare the .go-version and the go.mod version in the lint target to make sure they match.
    • We don't necessarily need them to match, but we can't have the go.mod version being higher than the .go-version or else we'll have issues with go-licenses

References

Test & Review

@sgagniere sgagniere requested a review from a team as a code owner November 14, 2024 21:25
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Comment on lines +82 to +84
ifneq ($(shell cat .go-version),$(shell go list -m -f '{{.GoVersion}}'))
$(error The go versions in go.mod and .go-version must match)
endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a note that when ServiceBot does this for us, we can remove this check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to remove it. The problem this is designed to block is someone making a manual update to the go.mod version without also changing the .go-version.

If the service bot updates both at once, there's no issue.

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