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
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>
1 year ago
..
distro all: update copyright and license headers 1 year ago
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 4 years ago
cmdname.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 1 year ago
cmdname_ios.go all: update copyright and license headers 1 year ago
cmp.go all: update copyright and license headers 1 year ago
cmp_test.go all: update copyright and license headers 1 year ago
export_test.go all: update copyright and license headers 1 year ago
modinfo_test.go all: update copyright and license headers 1 year ago
print.go all: update copyright and license headers 1 year ago
prop.go version: undo previous "optimization", do more work lazily 1 year ago
race.go all: update copyright and license headers 1 year ago
race_off.go all: update copyright and license headers 1 year ago
version.go version: undo previous "optimization", do more work lazily 1 year ago
version_test.go all: update copyright and license headers 1 year ago