-
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: get -d $mod@$version fails if there is no package/source files #44106
Comments
Bisected to 06538fa in case that's useful. |
Thanks. #29268 is closely related (with a test-only package rather than a tag-only package). |
I think we should fix this, but it's not obvious to me that it needs to block the 1.16 release, and whether it makes 1.16 at all probably depends on how invasive the fix is. Note that a workaround in the meantime is to explicitly provide some set of tags that is sufficient for the package to exist:
CC @matloob |
Change https://golang.org/cl/289769 mentions this issue: |
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?
What did you expect to see?
No error, per Go 1.15.7
What did you see instead?
I guess the challenge here is that it doesn't make sense for:
to not return an error.
But I think a special case for
go get -d $mod[@$version]
is fine.cc @bcmills @jayconrod
The text was updated successfully, but these errors were encountered: