]> Cypherpunks repositories - gostls13.git/commit
cmd/go: only use check cache action's dependencies to build vet config
authorMichael Matloob <matloob@golang.org>
Thu, 8 Jan 2026 17:45:34 +0000 (12:45 -0500)
committerMichael Matloob <matloob@google.com>
Fri, 9 Jan 2026 15:54:33 +0000 (07:54 -0800)
commit108b333d510c1f60877ac917375d7931791acfe6
treecfa793ce69f2249d9c1947feebe73909f729b66a
parent2bbb2ace346a26e0b1f7e32f1cdc645db8170d1c
cmd/go: only use check cache action's dependencies to build vet config

We manipulate the dependencies of the build action when adding the
non-test variant of the package being tested as a dependency for the
test, so the set of deps of the build package doesn't correctly
represent the dependencies of the package that have been built. Restrict
the set of dependencies we use to populate the vet data to the actual
build dependencies depended on by the check cache action so we don't
check an action that we don't actually depend on (and which may not have
completed yet!)

Fixes #75380

Change-Id: I029080d00b3b10a837abcfb7039e00206a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/734961
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/exec.go