]> Cypherpunks repositories - gostls13.git/commit
cmd/go: pass GoVersion in vet config
authorRuss Cox <rsc@golang.org>
Wed, 5 Jul 2023 16:12:35 +0000 (12:12 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jul 2023 13:09:30 +0000 (13:09 +0000)
commit6305d7fdd3a5c9d50010c04f4c418444517082ab
tree2444245e4fe9d065b8d6c207fcd2463cd39f8654
parentb490bdc27d5576e5ccdac33755c0156d609e1bb9
cmd/go: pass GoVersion in vet config

When invoking a vet tool with -vettool (or vet itself),
we need to pass the package's GoVersion to use when
analyzing the package.

The test of this behavior is in the x/tools/go/analysis CL 507880.

For #61176.

Change-Id: I3b5a90fcd19a0adc7fb29366e106e18f722fc061
Reviewed-on: https://go-review.googlesource.com/c/go/+/507976
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/go/internal/work/exec.go
src/cmd/go/internal/work/gc.go