You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd
Brad Fitzpatrick 1db46919ab cmd/tailscaled: make build fail nicely on older Go versions
Due to a bug in Go (golang/go#51778), cmd/go doesn't warn about your
Go version being older than the go.mod's declared Go version in that
case that package loading fails before the build starts, such as when
you use packages that are only in the current version of Go, like our
use of net/netip.

This change works around that Go bug by adding build tags and a
pre-Go1.18-only file that will cause Go 1.17 and earlier to fail like:

    $ ~/sdk/go1.17/bin/go install ./cmd/tailscaled
    # tailscale.com/cmd/tailscaled
    ./required_version.go:11:2: undefined: you_need_Go_1_18_to_compile_Tailscale
    note: module requires Go 1.18

Change-Id: I39f5820de646703e19dde448dd86a7022252f75c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner all: use any instead of interface{} 2 years ago
derper cmd/derper: add --stun-port flag 2 years ago
derpprobe all: use any instead of interface{} 2 years ago
hello tailcfg: make Node.Hostinfo a HostinfoView 2 years ago
mkpkg cmd/mkpkg: allow zero files in a package. 3 years ago
printdep cmd/printdep: add flag to print out Go toolchain tarball URL 2 years ago
speedtest cmd: upgrade to ffcli v3 3 years ago
tailscale all: use any instead of interface{} 2 years ago
tailscaled cmd/tailscaled: make build fail nicely on older Go versions 2 years ago
testcontrol all: use any instead of interface{} 2 years ago
tsshd go.mod: move from github.com/gliderlabs/ssh to github.com/tailscale/ssh 2 years ago