-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: import paths can contain the .test
suffix, breaking the toolchain
#60454
Comments
This would be my personal choice - even if supporting such package paths is technically possible, it feels like something we should strongly discourage due to the confusion it could cause. We always have to worry about backwards compatibility, but... is anyone even declaring such packages today? |
(CC @matloob) |
I've been using |
@egonelbre you can just name those |
Change https://go.dev/cl/513655 mentions this issue: |
Change https://go.dev/cl/613399 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Given
run
go test ./foo
What did you expect to see?
One of
foo.test
as an import pathWhat did you see instead?
The text was updated successfully, but these errors were encountered: