mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-18 03:49:50 -06:00
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:
1 parent
2ab7060644
commit
929aa55c54
1 file changed
+7
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user