Skip to content

Commit

Permalink
Use full patch version for go directives in go.mod
Browse files Browse the repository at this point in the history
It turns out that since Go 1.21, in which Go started using fully
qualified versions and not omitting zeros (i.e. "1.21.0" instead of just
"1.21"), just stating the minor version without the patch version is
actually considered a development version of Go. Who would have thought?
The correct way to use the Go directive is to set it to "go 1.23.0".

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
  • Loading branch information
twz123 committed Jan 17, 2025
1 parent 9e5ad0f commit d5b6d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/k0sproject/k0s

go 1.23
go 1.23.0

// k0s
require (
Expand Down
2 changes: 1 addition & 1 deletion hack/tool/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module tool

go 1.23
go 1.23.0

require (
github.com/hashicorp/terraform-exec v0.21.0
Expand Down

0 comments on commit d5b6d90

Please sign in to comment.