]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] cmd/go/internal/work: fix error while passing custom vet...
authorAgniva De Sarker <agnivade@yahoo.co.in>
Sun, 13 Oct 2019 15:03:47 +0000 (20:33 +0530)
committerAlexander Rakoczy <alex@golang.org>
Thu, 17 Oct 2019 18:29:51 +0000 (18:29 +0000)
commit0b575b4fb052f87d564cbbc31489b5a1923a01d3
tree1f8a29a8a24610de9e245135335a84ffa5db0611
parent4cb22ee8120ddd9cd8a9ef88ae2a142c5d2f8432
[release-branch.go1.13] cmd/go/internal/work: fix error while passing custom vet tool

For GOROOT packages, we were adding -unsafeptr=false to prevent unsafe.Pointer
checks. But the flag also got passed to invocations of go vet with a custom
vet tool. To prevent this from happening, we add this flag only when no
tools are passed.

Updates #34053
Fixes #34922

Change-Id: I8bcd637fd8ec423d597fcdab2a0ceedd20786019
Reviewed-on: https://go-review.googlesource.com/c/go/+/200957
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
(cherry picked from commit 902d5aa84f8340752c20b93bfd450a6cefcf3952)
Reviewed-on: https://go-review.googlesource.com/c/go/+/201237
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
src/cmd/go/internal/work/exec.go