tailscale/version
Alex Chan 9c1d59f00e version: parse Void Linux version strings
We have ~2.5k nodes running Void Linux, which report a version string
like `1.96.2_1 (Void Linux)`. Previously these versions would fail to
parse, because we only expect a hyphen and `extraCommits` after the
major/minor/patch numbers.

Fix the version parsing logic to handle this case.

Updates #19148

Change-Id: Ica4f172d080af266af7f0d69bb31483a095cd199
Signed-off-by: Alex Chan <alexc@tailscale.com>
2026-04-02 09:39:03 +01:00
..
distro all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
mkversion go.toolchain.branch: switch to Go 1.26 2026-03-04 21:57:05 -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: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
cmdname.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
cmp_test.go version: parse Void Linux version strings 2026-04-02 09:39:03 +01:00
cmp.go version: parse Void Linux version strings 2026-04-02 09:39:03 +01:00
exename.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
export_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
modinfo_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
print.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
prop.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
race_off.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
race.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
version_checkformat.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
version_internal_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
version_not_tsgo.go go.toolchain.rev, version: bump Tailscale Go, add IsTailscaleGo 2026-04-01 09:40:59 -07:00
version_test.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
version_tsgo.go go.toolchain.rev, version: bump Tailscale Go, add IsTailscaleGo 2026-04-01 09:40:59 -07:00
version.go go.toolchain.rev, version: bump Tailscale Go, add IsTailscaleGo 2026-04-01 09:40:59 -07:00