version: advertise unstable track in CLI, daemon start-up

Fixes #865

Change-Id: I166e56c3744b0a113973682b9a5327d7aec189f1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2023-01-13 06:15:07 -08:00 committed by Brad Fitzpatrick
parent 25a0091f69
commit faf2d30439

View File

@ -14,6 +14,9 @@ func String() string {
var ret strings.Builder var ret strings.Builder
ret.WriteString(Short) ret.WriteString(Short)
ret.WriteByte('\n') ret.WriteByte('\n')
if IsUnstableBuild() {
fmt.Fprintf(&ret, " track: unstable (dev); frequent updates and bugs are likely\n")
}
if GitCommit != "" { if GitCommit != "" {
var dirty string var dirty string
if GitDirty { if GitDirty {