-
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: go mod download doesn't do anything if you give it a module without a version #27783
Comments
Notably, I'd prefer "no version" to default to |
'go mod download' should report errors and failure if any. $ go mod download somethingveryfake.com/fake $ |
Change https://golang.org/cl/144106 mentions this issue: |
Change https://golang.org/cl/151559 mentions this issue: |
Also test that Download restores deleted files. Updates #27783 Change-Id: If50074dbcffd74ff08fbaa9ad8c314cfdce0b02d Reviewed-on: https://go-review.googlesource.com/c/151559 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Change https://golang.org/cl/174697 mentions this issue: |
Issue is related to #31237, an error message displays with the submitted fix which seems to solve the issue:
|
Change https://golang.org/cl/179998 mentions this issue: |
So, I didn't realize that go mod download required an
@version
at the end... I presumed it would default to@latest
just like it would if youimport
a library without specifying a version in your go.mod. However, instead,go mod download
just silently fails.What did you do?
(in a directory outside GOPATH with a go.mod that did not include github.com/lib/pq)
go mod download github.com/lib/pq
What did you expect to see?
some version of lib/pq downloaded, or an error
What did you see instead?
nothing happened and no error
System details
The text was updated successfully, but these errors were encountered: