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
For CI builds using Go 1.11 modules, it's common to cache the GOPATH between builds, so that dependencies are downloaded only once. This is usually done by mounting an external dir from the build host on top of /go.
The issue is that golangci-lint binary is in /go/bin/golangci-lint. If GOPATH is mounted from outside, the binary stops being visible in the filesystem, and is thus not possible to run it.
IMO it would be better if golangci-lint was stored in /usr/local/bin, so it's always accessible.
The text was updated successfully, but these errors were encountered:
Docker image version: golangci/golangci-lint:v1.12.2
For CI builds using Go 1.11 modules, it's common to cache the GOPATH between builds, so that dependencies are downloaded only once. This is usually done by mounting an external dir from the build host on top of
/go
.The issue is that
golangci-lint
binary is in/go/bin/golangci-lint
. If GOPATH is mounted from outside, the binary stops being visible in the filesystem, and is thus not possible to run it.IMO it would be better if
golangci-lint
was stored in/usr/local/bin
, so it's always accessible.The text was updated successfully, but these errors were encountered: