clientupdate, cmd/tailscale/cli: support updating to release-candidates (#18632)

Adds a new track for release candidates. Supports querying by track in
version and updating to RCs in update for supported platforms.

updates #18193

Signed-off-by: Will Hannah <willh@tailscale.com>
This commit is contained in:
Will Hannah
2026-02-12 14:49:52 -05:00
committed by GitHub
parent 0bac4223d1
commit 36d359e585
4 changed files with 75 additions and 60 deletions
+6 -3
View File
@@ -22,8 +22,11 @@ import (
func init() {
maybeUpdateCmd = func() *ffcli.Command { return updateCmd }
clientupdateLatestTailscaleVersion.Set(func() (string, error) {
return clientupdate.LatestTailscaleVersion(clientupdate.CurrentTrack)
clientupdateLatestTailscaleVersion.Set(func(track string) (string, error) {
if track == "" {
return clientupdate.LatestTailscaleVersion(clientupdate.CurrentTrack)
}
return clientupdate.LatestTailscaleVersion(track)
})
}
@@ -50,7 +53,7 @@ var updateCmd = &ffcli.Command{
distro.Get() != distro.Synology &&
runtime.GOOS != "freebsd" &&
runtime.GOOS != "darwin" {
fs.StringVar(&updateArgs.track, "track", "", `which track to check for updates: "stable" or "unstable" (dev); empty means same as current`)
fs.StringVar(&updateArgs.track, "track", "", `which track to check for updates: "stable", "release-candidate", or "unstable" (dev); empty means same as current`)
fs.StringVar(&updateArgs.version, "version", "", `explicit version to update/downgrade to`)
}
return fs