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: bad error from "go get" (with no arguments) #39080

Closed
rsc opened this issue May 14, 2020 · 1 comment
Closed

cmd/go: bad error from "go get" (with no arguments) #39080

rsc opened this issue May 14, 2020 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented May 14, 2020

$ mkdir /tmp/zz
$ cd /tmp/zz
$ echo module m >go.mod
$ go get
go get .: path /tmp/zz is not a package in module rooted at /tmp/zz
$

Should be more like "no package in current directory", and probably the substring "go get ." should not appear (that's not what I typed). So something like:

go get: no package in current directory

/cc @jayconrod

@jayconrod jayconrod self-assigned this May 14, 2020
@jayconrod jayconrod added the NeedsFix The path to resolution is known, but the work has not been done. label May 14, 2020
@jayconrod jayconrod added this to the Go1.15 milestone May 14, 2020
@gopherbot
Copy link

Change https://golang.org/cl/234681 mentions this issue: cmd/go/internal/modget: clarify error for 'go get' without arguments

@jayconrod jayconrod modified the milestones: Go1.15, Go1.16 May 21, 2020
@golang golang locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants