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

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

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

rsc opened this issue May 14, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@rsc
Copy link
Contributor

@rsc 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 label May 14, 2020
@jayconrod jayconrod added this to the Go1.15 milestone May 14, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented May 20, 2020

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
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
3 participants
You can’t perform that action at this time.