mirror of
https://github.com/golang/go.git
synced 2025-05-18 13:54:40 +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
@ -838,6 +838,9 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
tg.tempFile(dest, string(data))
|
tg.tempFile(dest, string(data))
|
||||||
|
if strings.Contains(copydir, filepath.Join("pkg", "tool")) {
|
||||||
|
os.Chmod(tg.path(dest), 0777)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user