on my macOS, I can exec cmd GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx to pre-install it and then, when I exec cmd GOOS=linux GOARCH=amd64 CGO_ENABLED=1 GO111MODULE=on GOPROXY=https://athens.azurefd.net go build, it exit 0.
But when the cmd GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx executed in golang:v1.12.1 container, it may try to pull module in go.mod and without GOPROXY it failed in the end.
The go env and go version executed in golang:1.12.1
I want to know why.
What did you expect to see?
I can pre-install go module solely, not all of them in go.mod