]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/test: ensure that build.ToolDir is accurate in tests
authorBryan C. Mills <bcmills@google.com>
Fri, 11 Mar 2022 04:38:25 +0000 (23:38 -0500)
committerBryan Mills <bcmills@google.com>
Fri, 18 Mar 2022 22:14:14 +0000 (22:14 +0000)
commitd68615f64b0d7c1e886f4b8c1267ecc1c4da76ad
tree9dc0045ef421cb16807c2f9cfc9797db4c2ef7f2
parent6378c0e753b75089611c8ca973b6e1777cf5aff8
cmd/go/internal/test: ensure that build.ToolDir is accurate in tests

This fixes a build failure due to inability to locate the "vet" tool
when the test binary is built with -trimpath.

Updates #51461

Change-Id: I81838cc8842e4ff7900cab81af60501ebba86ff1
Reviewed-on: https://go-review.googlesource.com/c/go/+/391808
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/test/flagdefs_test.go