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: go run x_test.go compiles nothing #4032
Labels
Milestone
Comments
My guess is that your filename.go imports "path/to/file/using/cgo". The go command here is telling you that it cannot process that package, due to issue #4030. I don't think go run is invoking go test. Status changed to WaitingForReply. |
It's definitely running go test: go run not_a_test.go >runtime.main: undefined: main.init >runtime.main: undefined: main.main go run not_a_varmint.go >But I'm not a test! Attachments:
|
It is not running 'go test'. However, it is omitting the _test.go files from the list, like it would omit them from a directory listing, meaning that it compiles nothing at all. I am not sure whether we will support 'go run x_test.go' - it breaks some of the symmetry with other commands - but at the least we should give a better error in this case. Labels changed: added priority-later, go1.1, removed priority-triage. Status changed to Accepted. |
This issue was closed by revision 8b6534b. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by d.wright.dev:
The text was updated successfully, but these errors were encountered: