]> Cypherpunks repositories - gostls13.git/commit
cmd/go: move module cache from $GOPATH/src/mod to $GOPATH/pkg/mod
authorRuss Cox <rsc@golang.org>
Mon, 30 Jul 2018 18:58:45 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 1 Aug 2018 00:35:26 +0000 (00:35 +0000)
commitb8f42d74e87aeec189f53e9fdb2a7e6026c099b1
treec4d52f5c3458f21e12c08425d7f028718d894086
parent27e546be86fbe98e0c19ad8a59186582cbbdff53
cmd/go: move module cache from $GOPATH/src/mod to $GOPATH/pkg/mod

Using $GOPATH/src/mod confuses too many tools.
$GOPATH/pkg/mod seems better for now.
It's also next to dep's cache, $GOPATH/pkg/dep.
If we do eliminate GOPATH/pkg for holding .a files (#4719)
then we could still keep it around for pkg/mod.
(Or we could move the module cache again then.)

Fixes #26401.
Fixes #26635.

Change-Id: I18f7da216ed9f490eded3c00d837fb086ae5b6a4
Reviewed-on: https://go-review.googlesource.com/126755
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Rob Pike <r@golang.org>
18 files changed:
src/cmd/go/alldocs.go
src/cmd/go/internal/clean/clean.go
src/cmd/go/internal/help/helpdoc.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modconv/convert_test.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modload/help.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/query_test.go
src/cmd/go/testdata/addmod.go
src/cmd/go/testdata/script/mod_file_proxy.txt
src/cmd/go/testdata/script/mod_import_mod.txt
src/cmd/go/testdata/script/mod_list.txt
src/cmd/go/testdata/script/mod_list_dir.txt
src/cmd/go/testdata/script/mod_multirepo.txt
src/cmd/go/testdata/script/mod_verify.txt