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 <noreply@anthropic.com>
This commit is contained in:
Stefan HallerandClaude Opus 5.5 committed 2026-11-15 16:11:57 +01:00
1 parent 2ab7060644
commit 929aa55c54
1 file changed
+7
+7
View File
@@ -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",