cmd/link: linking .a file not in package main succeeds #13468
Closed
Labels
Milestone
Comments
tkilbourn
added a commit
to tkilbourn/blueprint
that referenced
this issue
Mar 24, 2016
Go 1.6 fixed a bug where compiling with the -pack flag allowed non-main packages to link. golang/go#13468 This change uses package main for choosestage and gotestmain.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
foo.go:
The link should not succeed in the -pack case. It should get the same error as the non-pack case.
The text was updated successfully, but these errors were encountered: