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/version
Brad Fitzpatrick 58a6c9b2b8 version, hostinfo: recognize gokrazy as a distro
Now:

/tmp/breakglass3929186798 # /user/tailscale debug hostinfo
{
  "IPNVersion": "1.23.0-date.20220107",
  "OS": "linux",
  "OSVersion": "Gokrazy; kernel=5.16.11",
  "DeviceModel": "Raspberry Pi 4 Model B Rev 1.2",
  "Hostname": "gokrazy",
  "GoArch": "arm64"
}

Also, cache the distro lookup. It doesn't change while the program is
running:

name   old time/op    new time/op    delta
Get-6    5.21µs ± 5%    0.00µs ± 3%   -99.91%  (p=0.008 n=5+5)

name   old alloc/op   new alloc/op   delta
Get-6      792B ± 0%        0B       -100.00%  (p=0.008 n=5+5)

name   old allocs/op  new allocs/op  delta
Get-6      8.00 ± 0%      0.00       -100.00%  (p=0.008 n=5+5)

Updates #1866

Change-Id: Ifb9a63b94287010d3f4c8bfeb6b78119e8a9b203
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
distro version, hostinfo: recognize gokrazy as a distro 3 years ago
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 4 years ago
cmdname.go version: fix CmdName on the tailscale-ipn.exe binary 3 years ago
cmdname_ios.go all: simplify build tags involving iOS 3 years ago
cmp.go version: don't allocate parsing unsupported versions, empty strings 3 years ago
cmp_test.go all: use testingutil.MinAllocsPerRun 3 years ago
modinfo_test.go version: fix CmdName on the tailscale-ipn.exe binary 3 years ago
print.go version: use OSS repo's version when building. 4 years ago
prop.go logpolicy, ipn/ipnserver: connect to logtail via tailscaled when needed 3 years ago
race.go all: gofmt with Go 1.17 3 years ago
race_off.go all: gofmt with Go 1.17 3 years ago
version.go version: bump date 3 years ago