diff --git a/go.mod b/go.mod index ecbb781d4f..b91b4eaced 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/osbuild/images -go 1.21.0 +go 1.22.0 toolchain go1.22.5 diff --git a/tools/prepare-source.sh b/tools/prepare-source.sh index 3758f148d5..47d95ab7a1 100755 --- a/tools/prepare-source.sh +++ b/tools/prepare-source.sh @@ -2,7 +2,9 @@ set -eux -GO_VERSION=1.21.11 +# Go version must be consistent with image-builder which uses UBI +# container that is typically few months behind +GO_VERSION=1.21.13 GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION # this is the official way to get a different version of golang