]> Cypherpunks repositories - gostls13.git/commit
cmd/go: suppress calls to collectDeps for test packages
authorBryan C. Mills <bcmills@google.com>
Mon, 3 Apr 2023 21:02:49 +0000 (17:02 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 4 Apr 2023 23:08:19 +0000 (23:08 +0000)
commit449e69f1597273f13db684f4a629f3e43beb2987
treebcb52995f7493b10715eb29101228dbcf1ca87eb
parent19409663a09ffc65a7ff193a23a75763a4b5befd
cmd/go: suppress calls to collectDeps for test packages

Instead, do the cycle checking in recompileForTest once the test
variant packages have been poked in the right places in the dependency
tree(graph?).

(Pair programming with bcmills@.)

For #59157.

Change-Id: I0c644cb9f2c0dac3a5b0189e2aa0eef083c669f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/482237
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/test.go
src/cmd/go/testdata/script/list_test_cycle.txt [new file with mode: 0644]
src/cmd/go/testdata/script/list_test_err.txt