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 build fails on directory with only test files (behavior change from 1.2) #8279
Comments
I was bitten by this as well (on Mac and Linux) - it broke the build scripts that were working with 1.2. I used subdirectories with only *_test.go files to organize functional tests and keep them separately from the main .go source files and unit tests. It would be great to make "go build" and "go install" to skip the directories with only _test.go files so that <pkgdir>/... invocation could work as before. Adding a dummy.go file (with only "package <packagename>" line) works but it feels like a rather non-elegant workaround. |
see also issue #7915. probably we just need to document in go1.3.html. Labels changed: added release-go1.4, repo-main. Status changed to Thinking. |
for issue golang/go#8279
This is difficult to support nicely, because it's hard to Since we've been living with this since 1.3, I think it is |
The text was updated successfully, but these errors were encountered: