cmd/go: TestNewReleaseRebuildsStalePackagesInGOPATH modifies code in GOROOT #29263
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
go test cmd/go
should succeed even if the user cannot write toGOROOT
, as may be the case if the Go toolchain is provided by a system distribution. (See also #28387.)Unfortunately, today
TestNewReleaseRebuildsStalePackagesInGOPATH
assumes that it can write toGOROOT/src
:go/src/cmd/go/go_test.go
Line 903 in dbd323b
That not only risks a failed write to an unwritable directory, but also makes
go test cmd/go
dangerous to run concurrently with any build information, and potentially introduces spurious diffs during testing in development copies of thego
repository.The text was updated successfully, but these errors were encountered: