Add presubmit check to prevent accidental go directive bump #10258
Labels
area/ci
Issues or PRs related to ci
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
In Cluster API we only bump the go directive in go.mod files on the main branch.
While we bump the Go minor version that we build release branches with we never bump the go directive there.
This issue is about adding a presubmit check to ensure we don't accidentally bump it.
This can be implemented by adding a new
verify-go-directive
Makefile target (prior art: https://github.com/kubernetes/utils/pull/306/files) and then adding it to theverify
target we already run in CI.For more context, see: kubernetes/kubernetes#123744
The text was updated successfully, but these errors were encountered: