kubernetes / utils

Non-Kubernetes-specific utility libraries which are consumed by multiple projects.
Apache License 2.0
331 stars 196 forks source link

Add presubmit check to prevent accidental go directive bump #305

Closed liggitt closed 7 months ago

liggitt commented 7 months ago

Bumping the go directive in the go.mod files propagates to dependents virally, including kubernetes/kubernetes

Since this repo only releases from HEAD, we should be intentional when updating this directive since we may have to update on older kubernetes release branches.

Until https://github.com/golang/go/issues/65573 is resolved and available, I'd suggest keeping the go directive in this repo no higher than the version of go reflected in the root go.mod file of the oldest supported kubernetes/kubernetes release branch (go1.20 on k/k 1.27 currently)

cc @MadhavJivrajani @dims