Brad Fitzpatrick
da8def8e13
all: remove old +build tags
...
The //go:build syntax was introduced in Go 1.17:
https://go.dev/doc/go1.17#build-lines
gofmt has kept the +build and go:build lines in sync since
then, but enough time has passed. Time to remove them.
Done with:
perl -i -npe 's,^// \+build.*\n,,' $(git grep -l -F '+build')
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2022-11-04 07:25:42 -07:00
Josh Bleecher Snyder
cf8fcc1254
syncs: mark as safe for Go 1.18
...
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com >
2021-10-27 18:10:09 -07:00
Josh Bleecher Snyder
d2aa144dcc
syncs: bump known good version to include Go 1.17
...
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com >
2021-08-17 11:13:03 -07:00
Josh Bleecher Snyder
a5da4ed981
all: gofmt with Go 1.17
...
This adds "//go:build" lines and tidies up existing "// +build" lines.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com >
2021-08-05 15:54:00 -07:00
David Crawshaw
297b3d6fa4
staticcheck.conf: turn off noisy lint errors
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2021-06-18 15:48:20 -07:00
Josh Bleecher Snyder
bf24d54143
syncs: add AssertLocked
...
This allows us to check lock invariants.
It was proposed upstream and rejected in:
https://github.com/golang/go/issues/1366
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com >
2020-09-09 12:27:52 -07:00