]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: make directories read-only after renaming, not before
authorBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 22:46:14 +0000 (17:46 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Nov 2018 15:17:34 +0000 (15:17 +0000)
commit42e8b9c3a430ccc4a03b2994f7dcbde630410e1e
tree0f4a99b34c1198972b247bef844fc7eb7e818191
parent96a6bd4bf6281a57c933bdcc1da96a7608cf20d7
cmd/go/internal/modfetch: make directories read-only after renaming, not before

The call to os.Rename was failing on the darwin builders, despite having passed in the TryBots.
(I tested this change by running 'go test cmd/go' manually on a darwin gomote.)

This fixes the builder failures after CL 146382.

Updates #26794
Fixes #29030

Change-Id: I3644773421789f65e56f183d077b4e4fd17b8325
Reviewed-on: https://go-review.googlesource.com/c/151798
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/unzip.go