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: implicit go install of std in $GOROOT/src has weird error #31446

Open
bradfitz opened this issue Apr 12, 2019 · 1 comment
Open

cmd/go: implicit go install of std in $GOROOT/src has weird error #31446

bradfitz opened this issue Apr 12, 2019 · 1 comment

Comments

@bradfitz
Copy link
Member

@bradfitz bradfitz commented Apr 12, 2019

I did this by mistake (hit enter too early) and then noted the kinda weird error message:

bradfitz@go:~/go/src$ go install
can't load package: package std: unknown import path "std": cannot find module providing package std
bradfitz@go:~/go/src$ go install std
bradfitz@go:~/go/src$ echo $?
0

I guess it's correct, as "std" is some alias rather than a package, but maybe it can be made to just work, or have a more helpful error.

Low priority.

/cc @bcmills

@bradfitz bradfitz changed the title cmd/go: implicit go instal of std in $GOROOT/src has weird error cmd/go: implicit go install of std in $GOROOT/src has weird error Apr 12, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Apr 12, 2019

@bcmills bcmills added the modules label Apr 12, 2019
@bcmills bcmills added this to the Go1.14 milestone Apr 12, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.