tailscale/version
Josh Bleecher Snyder a4e19f2233 version: remove rsc.io/goversion dependency
rsc.io/goversion is really expensive.
Running version.ReadExe on tailscaled on darwin
allocates 47k objects, almost 11mb.

All we want is the module info. For that, all we need to do
is scan through the binary looking for the magic start/end strings
and then grab the bytes in between them.

We can do that easily and quickly with nothing but a 64k buffer.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-08-09 22:46:01 -07:00
..
distro cmd/tailscale/web: add support for QNAP 2021-06-10 19:06:05 +05:00
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 2020-11-02 19:54:44 -08:00
cmdname_ios.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
cmdname.go version: remove rsc.io/goversion dependency 2021-08-09 22:46:01 -07:00
cmp_test.go version: don't allocate parsing unsupported versions, empty strings 2021-07-01 14:25:50 -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: remove rsc.io/goversion dependency 2021-08-09 22:46:01 -07:00
print.go version: use OSS repo's version when building. 2020-10-28 16:17:21 -07:00
prop.go version: add IsMacSysExt func 2021-04-28 14:57:04 -07: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 2021-07-27 08:05:17 -07:00