Closed
Description
What version of Go are you using (go version
)?
go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOOS="linux"
What did you do?
$ echo $PWD
/home/mpl/src/perkeep.org
$ echo $GOPATH
/home/mpl
$ echo $GO111MODULE
on
$ go mod download -dir github.com/gopherjs/gopherjs
flag provided but not defined: -dir
usage: go mod download [-dir] [-json] [modules]
Run 'go help mod download' for details.
What did you expect to see?
I wanted to see what the -dir option does.
The longer answer is I was trying to find out where go get/download stores the downloaded sources, since I hadn't found it in the documentation. I now see with a more thorough read that it is in GOPATH/pkg/mod
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
thepudds commentedon Aug 26, 2018
@gopherbot please add label modules
agnivade commentedon Aug 26, 2018
/cc @bcmills @rsc
agnivade commentedon Aug 26, 2018
Seems like a genuine oversight. There seems to be only the json flag for download. https://github.com/golang/go/blob/master/src/cmd/go/internal/modcmd/download.go#L50.
dolmen commentedon Aug 27, 2018
The bug seems in the documentation (
go help mod download
) that should not mention the inexistent-dir
option.gopherbot commentedon Aug 28, 2018
Change https://golang.org/cl/131775 mentions this issue:
cmd/go/internal/modcmd: remove non-existant -dir flag
mark-rushakoff commentedon Aug 29, 2018
If this is just removing
-dir
from the output ofgo help mod download
, it would be nice to backport to 1.11.bcmills commentedon Sep 4, 2018
@gopherbot, please backport to 1.11: this is a doc-only fix.
gopherbot commentedon Sep 4, 2018
Backport issue(s) opened: #27498 (for 1.11).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases.
gopherbot commentedon Nov 1, 2018
Change https://golang.org/cl/146717 mentions this issue:
[release-branch.go1.11] cmd/go/internal/modcmd: remove non-existent -dir flag
[release-branch.go1.11] cmd/go/internal/modcmd: remove non-existent -…
go1.11.2 updates tracking (#2)