]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/test: add dep from test pkg build to real pkg build
authorIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2021 20:14:24 +0000 (12:14 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2021 22:40:42 +0000 (22:40 +0000)
commit2375b6edf376f97d0d8e3978fa3211788bc9b4dd
tree18601c75468300280177cbd16481f2d5ccabd2b2
parent24898d6948e1651aab909a5abccbfde64dc359cd
cmd/go/internal/test: add dep from test pkg build to real pkg build

If we have to build a test package, and if the full set of packages
being tested imports the regular package somewhere, then make building
the test package depend on building the regular package.  That way if
the regular package fails to build we only report the error once.

Fixes #44624

Change-Id: Ic7d66d8fec9c4688d369153a4b21194989f8def3
Reviewed-on: https://go-review.googlesource.com/c/go/+/365215
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/build_single_error.txt [new file with mode: 0644]