Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: `go test -c` skips init from main while `go test` doesn't #26989
go version go1.10.3 darwin/amd64
doesn't run the main init. Is this a bug? Also it's seems you can't compile static test binaries only non test binaries can be compiled static?
(PS asked it on golang-nuts first before I asked here)
I made a wrong conclusion and run a executable not representing the build because it failt so it didn't replaced the old executable