Skip to content

Commit

Permalink
Use "X.Y" syntax in go.mod for now
Browse files Browse the repository at this point in the history
Older version of Go can't parse "X.Y.Z".
  • Loading branch information
thockin committed Feb 27, 2024
1 parent 6eff651 commit ea7db77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module k8s.io/kube-openapi

go 1.21.3
// Keep this as X.Y (instead of X.Y.Z, wchih Go 1.21 wants, but Go 1.20 does
// not support) until we think it is reasonable for consumers to be expected to
// use Go 1.21 or higher.
go 1.21

require (
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46
Expand Down
5 changes: 4 additions & 1 deletion test/integration/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module k8s.io/kube-openapi/test/integration

go 1.21.3
// Keep this as X.Y (instead of X.Y.Z, wchih Go 1.21 wants, but Go 1.20 does
// not support) until we think it is reasonable for consumers to be expected to
// use Go 1.21 or higher.
go 1.21

require (
github.com/emicklei/go-restful/v3 v3.8.0
Expand Down

0 comments on commit ea7db77

Please sign in to comment.