Skip to content

Commit 0d5fc4e

Browse files
dmitshurgopherbot
authored andcommitted
cmd/go: fix TestNewReleaseRebuildsStalePackagesInGOPATH for runtime move
CL 600436 moved runtime/internal/sys to internal/runtime/sys and updated TestNewReleaseRebuildsStalePackagesInGOPATH in part accordingly. This is the other part that's needed for it to pass. For #65355. Change-Id: I26cff96c15caf185a4ee2c8fb31ec6c877ab87e2 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/600595 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent c18ff29 commit 0d5fc4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/go/go_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,17 +957,17 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) {
957957
// now they all matter, so keep using sys.go.
958958
restore = addVar(sys, 1)
959959
defer restore()
960-
tg.wantStale("p1", "stale dependency: runtime/internal", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go")
960+
tg.wantStale("p1", "stale dependency: internal/runtime/sys", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go")
961961
restore()
962962
tg.wantNotStale("p1", "", "./testgo list claims p1 is stale, incorrectly, after changing back to old release")
963963
addVar(sys, 2)
964-
tg.wantStale("p1", "stale dependency: runtime", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go again")
964+
tg.wantStale("p1", "stale dependency: internal/runtime/sys", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go again")
965965
tg.run("install", "p1")
966966
tg.wantNotStale("p1", "", "./testgo list claims p1 is stale after building with new release")
967967

968968
// Restore to "old" release.
969969
restore()
970-
tg.wantStale("p1", "stale dependency: runtime/internal", "./testgo list claims p1 is NOT stale, incorrectly, after restoring sys.go")
970+
tg.wantStale("p1", "not installed but available in build cache", "./testgo list claims p1 is NOT stale, incorrectly, after restoring sys.go")
971971
tg.run("install", "p1")
972972
tg.wantNotStale("p1", "", "./testgo list claims p1 is stale after building with old release")
973973
}

0 commit comments

Comments
 (0)