]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modfetch: document DownloadDir
authorBryan C. Mills <bcmills@google.com>
Thu, 8 Nov 2018 15:23:53 +0000 (10:23 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 18:59:26 +0000 (18:59 +0000)
Change-Id: I4717964234fca0c8c5889ed710b66f39eb53a809
Reviewed-on: https://go-review.googlesource.com/c/151562
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/modfetch/cache.go

index 80484d5b5e7285962c4920b6f48507951157d71b..1ccd43dc2ae845d859f2c2d9447c00ed8003ca1a 100644 (file)
@@ -56,6 +56,8 @@ func CachePath(m module.Version, suffix string) (string, error) {
        return filepath.Join(dir, encVer+"."+suffix), nil
 }
 
+// DownloadDir returns the directory to which m should be downloaded.
+// Note that the directory may not yet exist.
 func DownloadDir(m module.Version) (string, error) {
        if PkgMod == "" {
                return "", fmt.Errorf("internal error: modfetch.PkgMod not set")