You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Mar 7 2024, we are seeing failures in CI steps that build Docker images, e.g. DRA jobs and the acceptance/docker group of the exhaustive pipeline:
------
Dockerfile:2
--------------------
1 | FROM golang:1
2 | >>> 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)
3 | WORKDIR /usr/local/src/env2yaml
4 | CMD ["go", "build"]
--------------------
ERROR: failed to solve: process "/bin/sh -c 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)" did not complete successfully: exit code: 1
make: *** [Makefile:205: golang] Error 1
go get is no longer supported outside of a module in the legacy GOPATH mode (that is, with GO111MODULE=off). Other build commands, such as go build and go test, will continue to work indefinitely for legacy GOPATH programs.
The quick solution would be to pin to 1.21, but we should install the module without GO111MODULE=off i.e. not using the legacy GOPATH.
The text was updated successfully, but these errors were encountered:
Since Mar 7 2024, we are seeing failures in CI steps that build Docker images, e.g. DRA jobs and the acceptance/docker group of the exhaustive pipeline:
Example failures:
The root cause is that we use
golang:1
as the base docker image, but recently 1.22 was released andThe quick solution would be to pin to
1.21
, but we should install the module withoutGO111MODULE=off
i.e. not using the legacy GOPATH.The text was updated successfully, but these errors were encountered: