tailscale/version
David Anderson 9ad36d17a3 version: undo previous "optimization", do more work lazily
Commit 59c254579e moved a lot of work
from functions that could be eliminated at compile time (because
tests against runtime.GOOS are compile-time constant), into code
that must always run before main().

So, revert that, and instead optimize the package only by moving the
remaining string processing code behind sync.Onces.

Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-10 15:27:14 -08:00
..
distro all: update copyright and license headers 2023-01-27 15:36:29 -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: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmdname.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
cmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
export_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
modinfo_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
print.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
prop.go version: undo previous "optimization", do more work lazily 2023-02-10 15:27:14 -08:00
race_off.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
race.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
version_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
version.go version: undo previous "optimization", do more work lazily 2023-02-10 15:27:14 -08:00