diff options
author | Russ Cox <rsc@golang.org> | 2018-08-07 12:01:36 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2018-08-10 00:01:34 +0000 |
commit | 9f4ea6c25d7cee2ddb7d478cf03582baad17cc59 (patch) | |
tree | bbcaca8961a171dec125a3a9edd6ce639ed250b9 /src/cmd/go/internal/modcmd/mod.go | |
parent | 89e13c80efe19caa7deb8e4a5b0ccfa385a8b0bf (diff) | |
download | go-9f4ea6c25d7cee2ddb7d478cf03582baad17cc59.tar.gz go-9f4ea6c25d7cee2ddb7d478cf03582baad17cc59.zip |
cmd/go: add go mod download
go mod download provides a way to force downloading
of a particular module version into the download cache
and also to locate its cached files.
Forcing downloads is useful for warming caches, such as
in base docker images.
Finding the cached files allows caching proxies to use
go mod download as the way to obtain module files
on cache miss.
Fixes #26577.
Fixes #26610.
Change-Id: Ib8065bcce07c9f5105868ec1d87887ef4871f07e
Reviewed-on: https://go-review.googlesource.com/128355
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/go/internal/modcmd/mod.go')
-rw-r--r-- | src/cmd/go/internal/modcmd/mod.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/internal/modcmd/mod.go b/src/cmd/go/internal/modcmd/mod.go index c1a0ddc7e1..0f78cc3b41 100644 --- a/src/cmd/go/internal/modcmd/mod.go +++ b/src/cmd/go/internal/modcmd/mod.go @@ -19,6 +19,7 @@ See 'go help modules' for an overview of module functionality. `, Commands: []*base.Command{ + cmdDownload, cmdEdit, cmdFix, cmdGraph, |