Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: Tests on pristine golang:alpine container require gcc #25204
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
It's not a hard dependency on gcc. It's rebuilding the runtime/cgo instead of using the go distribution's prebuilt runtime/cgo.a. This is basically working as intended - vgo is its own build system and should not assume it's in sync with whatever go distribution you are using. The workaround is to have an appropriate C compiler in the container or disable cgo, sorry.
Once vgo is part of the main go command this will no longer happen.