]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: make Repo.Zip write to an io.Writer instead of a temporary...
authorBryan C. Mills <bcmills@google.com>
Tue, 27 Nov 2018 13:50:28 +0000 (08:50 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 18:18:51 +0000 (18:18 +0000)
commitba2e8f65ab36f145177419c56cc03adf67f0e167
tree7d7ac889d63f59600f3e9bd37c0f89ae7df1c56f
parentc124a919716fd54f9b16b83fa94f68b0c8fc4681
cmd/go/internal/modfetch: make Repo.Zip write to an io.Writer instead of a temporary file

This will be used to eliminate a redundant copy in CL 145178.

(It also decouples two design points that were previously coupled: the
destination of the zip output and the program logic to write that
output.)

Updates #26794

Change-Id: I6cfd5a33c162c0016a1b83a278003684560a3772
Reviewed-on: https://go-review.googlesource.com/c/151341
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
src/cmd/go/internal/modfetch/coderepo.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modfetch/repo.go