cmd/go: go1.11 failed to derive $GOPATH in container environment #27468
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go 1.11
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?linux amd64
What did you do?
go test/build a module in a container
What did you expect to see?
command shall run without any issue
What did you see instead?
go complains "missing $GOPATH"
I have checked go env output in the container:
go env looks ok in the host:
Can be easily reproduce with below Dockerfile:
older go version runs fine.
The text was updated successfully, but these errors were encountered: