From 06ff0eb4e0c0f00b55c281b6543bde9314bbab52 Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Thu, 8 Feb 2024 11:12:15 +0200 Subject: [PATCH] Fix docker build issues We don't pin the minor version of the go docker image and the recent update to 1.22 resulted in the following error: ``` go env -w GO111MODULE=off && go get gopkg.in/yaml.v2 go: modules disabled by GO111MODULE=off; see 'go help modules' ``` This commit pins the Go docker image to 1.21 until we resolve the issue in a more proper manner (using go modules) in a follow up PR. --- docker/data/golang/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/data/golang/Dockerfile b/docker/data/golang/Dockerfile index ae12b80fdd5..5736aded483 100644 --- a/docker/data/golang/Dockerfile +++ b/docker/data/golang/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1 +FROM golang:1.21 RUN go env -w GO111MODULE=off && (for i in 0 1 2 3 4 5; do sleep "$i"; go get gopkg.in/yaml.v2 && break; done) WORKDIR /usr/local/src/env2yaml CMD ["go", "build"]