Skip to content
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: missing 'go install path@version' hint in 'go install path' (without version) error #42638

Open
bcmills opened this issue Nov 16, 2020 · 0 comments

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Nov 16, 2020

~$ gotip version
go version devel +f2eea4c1d Mon Nov 16 08:22:10 2020 +0000 linux/amd64

~$ gotip install golang.org/dl/go1.9.7
no required module provides package golang.org/dl/go1.9.7: working directory is not part of a module

~$ gotip install golang.org/dl/go1.9.7@latest

~$

The error message from the first go install invocation should have suggested the @latest suffix, since the two commands are semantically very close and the suffix is relatively easy to forget. (See also #42087.)

Marking as release-blocker for Go 1.16 since this is a potential usability issue for #40276.

CC @jayconrod @matloob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.