mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 19:46:27 -08:00
golangci-lint runs `go vet` analyzers like copylocks, but only reports issues on lines changed by a PR, so adding a mutex to an existing struct can silently make old copies of it wrong. This patch removes this responsibility from golangci-lint and moves the analyzers into our custom vettool. It also adds `go vet` checks for platform-specific code. Updates #22645 Updates #22647 Updates #22652 Fixes #22653 Change-Id: I28c890de2ac2744911a04e0704ebf47fca088a9e Co-authored-by: Brad Fitzpatrick <[email protected]> Signed-off-by: Simon Law <[email protected]>