New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: A general comment invalidates a '+build' magic comment #9434
Comments
You need to leave one blank line between // +build and package main, |
I left one blank line between |
I can't reproduce the problem.
|
Please try with a general comment (/**/), not a line comment. |
please see http://golang.org/pkg/go/build/#hdr-Build_Constraints, |
Hmm, OK, this behavior I reported seems expected. Sorry for bothering you. Thank you very much. |
go version go1.4 darwin/amd64
OS X 10.10.1
Try to execute 'go build .' with two files:
main.go
foo.go
Ignore main.go (package main) when building or other tools. In fact, it worked without the general comments (/**/)
can't load package: package .: found packages foo.go (foo) and main.go (main) in ...
The text was updated successfully, but these errors were encountered: