Commit 0b575b4f authored by Agniva De Sarker's avatar Agniva De Sarker Committed by Alexander Rakoczy
Browse files

[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: default avatarJay Conrod <jayconrod@google.com>
(cherry picked from commit 902d5aa8)
Reviewed-on: https://go-review.googlesource.com/c/go/+/201237


Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: default avatarAgniva De Sarker <agniva.quicksilver@gmail.com>
parent 4cb22ee8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment