From db9d4e44bcde8e0b0b4d4d54845bfe4bdc092caf Mon Sep 17 00:00:00 2001 From: Kevin Parsons Date: Mon, 25 Nov 2024 10:45:52 -0800 Subject: [PATCH] Fix go.mod to have the correct Go version 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 --- go.mod | 2 +- test/go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 9cf2bd7dca..17e92e40af 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/Microsoft/hcsshim -go 1.22 +go 1.22.0 require ( github.com/Microsoft/cosesign1go v1.2.0 diff --git a/test/go.mod b/test/go.mod index 427e59f34f..be53db0e88 100644 --- a/test/go.mod +++ b/test/go.mod @@ -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