-
Notifications
You must be signed in to change notification settings - Fork 18k
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: document that files beginning with . or _ are ignored #5655
Labels
Comments
This issue was closed by revision da634dd. Status changed to Fixed. |
Excuse me?! If I read the diffs correctly, you just changed the docs to say “ends with _test.go”. Well, the filename _test.go also ends with “_test.go”, so this fix is a no-op. If you’re determined to just change the documentation you have to sa y “ends with _test.go but with one or more characters preceding the _” Which, if I were writing it, would make me ask “why does this artificial restriction exist?” |
You're right, this is a non-fix. I've dug into it. We don't explicitly ignore files named "_test.go", but the build infrastructure does explicitly ignore any file that begins with a dot or an underscore. So the docs are technically correct by omission. :P So, the cmd/go docs need to be updated to mention that files beginning with . and _ are ignored. The go/build package docs do mention it, though: http://golang.org/pkg/go/build/#Context.Import Owner changed to @adg. Status changed to Accepted. |
https://golang.org/cl/10410045 I should note that we can't change the tool to accept "_test.go", as it would be incompatible with earlier versions of Go. Status changed to Started. |
This issue was closed by revision 2f70ac1. Status changed to Fixed. |
Issue #7909 has been merged into this issue. |
Issue #7909 has been merged into this issue. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by timbray:
The text was updated successfully, but these errors were encountered: