mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go: fix TestNewReleaseRebuildsStalePackagesInGOPATH
Broken during CL 267719. Change-Id: If5acb8231d3053c0e714a79c02cb56eaba6e74e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/274854 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
ac38af2f3d
commit
05ddb879c7
1 changed files with 3 additions and 0 deletions
|
|
@ -838,6 +838,9 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) {
|
|||
return err
|
||||
}
|
||||
tg.tempFile(dest, string(data))
|
||||
if strings.Contains(copydir, filepath.Join("pkg", "tool")) {
|
||||
os.Chmod(tg.path(dest), 0777)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue