Files
tailscale/tool
Brad Fitzpatrick 0e0ee1ad04 tool/gocross: fix gocross-wrapper.ps1 toolchain staleness check for rc versions
The check strips the rc suffix from the installed toolchain's minor
version (VERSION file, e.g. "go1.27rc2" becomes 27) but not from
go.mod's go directive ("1.27rc2" stays 27rc2). The string comparison
27 -lt 27rc2 is then true, so the wrapper considered an up-to-date rc
toolchain stale and tried to delete it while its go.exe was running,
failing with access denied and breaking the gocross build on Windows.
Strip the rc suffix from both sides.

Updates #20220

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Change-Id: Ifa74cdfc4f9095133b96579de2f804c74cd9aeab
2026-07-31 08:11:27 -07:00
..
2026-04-08 14:08:30 -07:00
2023-10-30 18:20:33 +00:00
2023-10-30 18:20:33 +00:00
2022-07-22 11:36:49 -07:00