From 8f437ac589bae52167870281279b3d7622fe6dc7 Mon Sep 17 00:00:00 2001 From: Bruno Krugel Date: Tue, 18 Nov 2025 12:31:18 -0300 Subject: [PATCH] fix: don't notify update available when running local build (#1465) --- internal/update/update.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/update/update.go b/internal/update/update.go index 061766c3a4eadfe5226dbc95a1afd2dfd677a957..1ddda8eca17e19077b26c3da09de6c129316f019 100644 --- a/internal/update/update.go +++ b/internal/update/update.go @@ -54,7 +54,7 @@ func Check(ctx context.Context, current string, client Client) (Info, error) { Latest: current, } - if info.Current == "devel" || info.Current == "unknown" { + if info.Current == "devel" || info.Current == "unknown" || strings.Contains(info.Current, "dirty") { return info, nil } @@ -64,6 +64,7 @@ func Check(ctx context.Context, current string, client Client) (Info, error) { } info.Latest = strings.TrimPrefix(release.TagName, "v") + info.Current = strings.TrimPrefix(info.Current, "v") info.URL = release.HTMLURL return info, nil }