mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-06 01:00:20 -04:00
fix: use GOTOOLCHAIN=auto inside the Docker images (#4532)
This commit is contained in:
parent
f2d411006a
commit
2413f68f82
2 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,11 @@ FROM golang:1.22-alpine
|
||||||
# related to https://github.com/golangci/golangci-lint/issues/3107
|
# related to https://github.com/golangci/golangci-lint/issues/3107
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
|
|
||||||
|
# Allow to download a more recent version of Go.
|
||||||
|
# https://go.dev/doc/toolchain
|
||||||
|
# GOTOOLCHAIN=auto is shorthand for GOTOOLCHAIN=local+auto
|
||||||
|
ENV GOTOOLCHAIN auto
|
||||||
|
|
||||||
# gcc is required to support cgo;
|
# gcc is required to support cgo;
|
||||||
# git and mercurial are needed most times for go get`, etc.
|
# git and mercurial are needed most times for go get`, etc.
|
||||||
# See https://github.com/docker-library/golang/issues/80
|
# See https://github.com/docker-library/golang/issues/80
|
||||||
|
|
|
@ -4,6 +4,11 @@ FROM golang:1.22
|
||||||
# related to https://github.com/golangci/golangci-lint/issues/3107
|
# related to https://github.com/golangci/golangci-lint/issues/3107
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
|
|
||||||
|
# Allow to download a more recent version of Go.
|
||||||
|
# https://go.dev/doc/toolchain
|
||||||
|
# GOTOOLCHAIN=auto is shorthand for GOTOOLCHAIN=local+auto
|
||||||
|
ENV GOTOOLCHAIN auto
|
||||||
|
|
||||||
# Set all directories as safe
|
# Set all directories as safe
|
||||||
RUN git config --global --add safe.directory '*'
|
RUN git config --global --add safe.directory '*'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue