Skip to content

Commit

Permalink
Fix go.mod to have the correct Go version
Browse files Browse the repository at this point in the history
As of recent Go versions, specifying the go directive without a patch
(e.g. 1.22) is no longer supported. Because go tries to download a
matching toolchain if you're not already using one, it will try to
download go toolchain version 1.22, which doesn't exist (1.22.0 does).

Fix the go.mod version to specify the full version with patch, 1.22.0.

Signed-off-by: Kevin Parsons <[email protected]>
  • Loading branch information
kevpar committed Nov 25, 2024
1 parent 9cf7c1c commit db9d4e4
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/Microsoft/hcsshim

go 1.22
go 1.22.0

require (
github.com/Microsoft/cosesign1go v1.2.0
Expand Down
2 changes: 1 addition & 1 deletion test/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
module github.com/Microsoft/hcsshim/test

go 1.22
go 1.22.0

require (
github.com/Microsoft/go-winio v0.6.2
Expand Down

0 comments on commit db9d4e4

Please sign in to comment.