cmd/go: go test -c
skips init from main while go test
doesn't
#26989
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
go version go1.10.3 darwin/amd64
Hi,
go test
runs the main init and the main_test init but the binary created bygo test -c -a -tags 'netgo noplugin' -gcflags "all=-N -l"
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)
The text was updated successfully, but these errors were encountered: