Multiple issues with go build #41455
Labels
FrozenDueToAge
modules
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not sure.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using
go build
... behind a corporate firewall:$ go build -buildmode=plugin -o bubbler.so plugin/bubbler/main.go
I have checked in all my dependencies using
go mod tidy
,go mod verify
.The dependencies are on disk and checked into git history, at
vendor/
However, when I load the same file tree into a library/golang:1.13 container and try to run that same exact build step, then for some reason Go insists on redownloading the dependencies, which fails due to the container not having the right proxy settings.
Some other
go
... commands offer an-insecure
flag to work around this. Butgo build
does not appear to have this option available.What did you expect to see?
The build silently succeed with a zero exit code.
What did you see instead?
Go complains about downloading one of the
vendor/
ed dependencies.The text was updated successfully, but these errors were encountered: