tailscale/version
Brad Fitzpatrick d0698cfcec 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>
(cherry picked from commit 58a6c9b2b8)
2022-03-08 13:54:13 -08:00
..
distro version, hostinfo: recognize gokrazy as a distro 2022-03-08 13:54:13 -08:00
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 2020-11-02 19:54:44 -08:00
cmdname_ios.go all: simplify build tags involving iOS 2021-08-17 11:13:03 -07:00
cmdname.go version: fix CmdName on the tailscale-ipn.exe binary 2021-09-20 14:49:45 -07:00
cmp_test.go all: use testingutil.MinAllocsPerRun 2021-10-28 12:48:37 -07:00
cmp.go version: don't allocate parsing unsupported versions, empty strings 2021-07-01 14:25:50 -07:00
modinfo_test.go version: fix CmdName on the tailscale-ipn.exe binary 2021-09-20 14:49:45 -07:00
print.go version: use OSS repo's version when building. 2020-10-28 16:17:21 -07:00
prop.go logpolicy, ipn/ipnserver: connect to logtail via tailscaled when needed 2021-12-17 14:40:26 -08:00
race_off.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
race.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
version.go version: bump date 2022-01-07 12:40:23 -08:00