x/vgo: Tests on pristine golang:alpine container require gcc #25204
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.1 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
vgo test -ldflags="-s -w" -v
in golang:alpine Docker containerIf possible, provide a recipe for reproducing the error.
main.go
main_test.go
go.mod
Dockerfile
What did you expect to see?
Building with:
docker build .
A successful test and build. (Uncomment the four lines above, and comment out
vgo test
)What did you see instead?
A hard dependency on
gcc
, causing a failure of the tests.If go is used for the tests rather than vgo, it works just fine.
The text was updated successfully, but these errors were encountered: