-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 list should not allow an empty "" argument #37300
Comments
That looks like a bug in
Agreed: we should fix the error message from |
The
but if a program expect only one package, it may use
|
|
Some more examples for
When outside a module they return an error:
This means that |
Those examples are consistent with I don't think a separate issue is needed. (I suspect that the same CL can easily cover both cases, and if not we can fork another issue at that point.) |
@bcmills: don't we have two different issues here?
|
Both symptoms arise from the same root cause: failure to diagnose empty-string arguments during argument parsing. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Inside a module
github.com/perillo/goprint
:What did you expect to see?
What did you see instead?
go list ""
works fine. Is there a reason for this asymmetry?If an empty module path must be rejected, the error message should be changed.
Thanks.
The text was updated successfully, but these errors were encountered: