-
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 mod download $(go list -m)' fails silently #28338
Comments
What do you mean? Please post a complete trace of the commands that you ran and the output they produced. |
Please excuse my poor English. The command as follow:
(I tested on Windows 10.) |
That may be a bug, but it's a very strange sequence of commands to run.
Since the module itself (by its own definition) contains the source code you requested, in some sense
If that command works at all, that's arguably a bug: the I'll open a separate issue for that. |
The lack of a useful error message is closely related to #27783. |
Issue seems solved
|
@iwdgo, we could still use a better diagnostic for
|
Change https://golang.org/cl/189797 mentions this issue: |
Following other merges, the CL is updated. (edited) |
What version of Go are you using (
go version
)?go1.11 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10, amd64
What did you do?
go mod download
doesn't work well whengo mod init
without version.(If you run
go mod download something.com/something@latest
, doesn't work well too.)What did you expect to see?
Display message (e.g.
go mod init: must be set version
)What did you see instead?
Nothing.
Displaying no message isn't user-friendly I think.
The text was updated successfully, but these errors were encountered: