From 929aa55c544047460f95ea10fe70b8203697d07e Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 15 Nov 2026 16:11:57 +0100 Subject: [PATCH] fixup! Add a way to tell how lazygit was installed Test that a build from a git checkout counts as a dev build, now that its version names the release that it is based on. Co-Authored-By: Claude Opus 5.5 --- pkg/updates/installation_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/updates/installation_test.go b/pkg/updates/installation_test.go index fea273476..0a636b5fc 100644 --- a/pkg/updates/installation_test.go +++ b/pkg/updates/installation_test.go @@ -23,6 +23,13 @@ func TestDetectInstallKind(t *testing.T) { executablePath: "/home/user/go/bin/lazygit", expected: InstallKindDevBuild, }, + { + name: "built from a git checkout based on a release", + buildSource: "unknown", + version: "v0.66.2+0123abcd-dirty", + executablePath: "/home/user/go/bin/lazygit", + expected: InstallKindDevBuild, + }, { name: "built without version", buildSource: "unknown",