From 36c7bc77d79fc53fc7f58b9d7cf5ee1e5b4c89ea Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Fri, 11 Oct 2024 13:55:00 +0200 Subject: [PATCH] build: keep Go version consistent with image-builder --- go.mod | 2 +- tools/prepare-source.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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