File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ FROM golang:1.22-alpine
4
4
# related to https://github.com/golangci/golangci-lint/issues/3107
5
5
ENV GOROOT /usr/local/go
6
6
7
+ # Allow to download a more recent version of Go.
8
+ # https://go.dev/doc/toolchain
9
+ # GOTOOLCHAIN=auto is shorthand for GOTOOLCHAIN=local+auto
10
+ ENV GOTOOLCHAIN auto
11
+
7
12
# gcc is required to support cgo;
8
13
# git and mercurial are needed most times for go get`, etc.
9
14
# See https://github.com/docker-library/golang/issues/80
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ FROM golang:1.22
4
4
# related to https://github.com/golangci/golangci-lint/issues/3107
5
5
ENV GOROOT /usr/local/go
6
6
7
+ # Allow to download a more recent version of Go.
8
+ # https://go.dev/doc/toolchain
9
+ # GOTOOLCHAIN=auto is shorthand for GOTOOLCHAIN=local+auto
10
+ ENV GOTOOLCHAIN auto
11
+
7
12
# Set all directories as safe
8
13
RUN git config --global --add safe.directory '*'
9
14
You can’t perform that action at this time.
0 commit comments