jesseduffield / jesseduffield/lazygit

Fail lazygit integration/component test for 0.64.1 and 0.65.0 release tarballs

Open
#6,000 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug
I'm prepared the update for Gentoo dev-vcs/lazygit-0.64.1 and -0.65.0 (guru repository) package and ran tests via build scrips with command `go test ./... -short` as usual and got an error message:

```
...
ok github.com/jesseduffield/lazygit/pkg/i18n 0.075s
ok github.com/jesseduffield/lazygit/pkg/integration/clients 0.062s
? github.com/jesseduffield/lazygit/pkg/integration/clients/injector [no test files]
2026/09/06 23:21:32 must run in lazy project folder or child folder
FAIL github.com/jesseduffield/lazygit/pkg/integration/components 0.062s
? github.com/jesseduffield/lazygit/pkg/integration/tests [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/bisect [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/branch [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/cherry_pick [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/commit [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/config [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/conflicts [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/custom_commands [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/demo [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/diff [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/file [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/filter_and_search [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/filter_by_author [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/filter_by_path [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/interactive_rebase [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/misc [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/patch_building [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/reflog [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/remote [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/shared [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/shell_commands [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/staging [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/stash [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/status [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/submodule [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/sync [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/tag [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/ui [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/undo [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/tests/worktree [no test files]
? github.com/jesseduffield/lazygit/pkg/integration/types [no test files]
? github.com/jesseduffield/lazygit/pkg/jsonschema [no test files]
? github.com/jesseduffield/lazygit/pkg/logs [no test files]
? github.com/jesseduffield/lazygit/pkg/logs/tail [no test files]
ok github.com/jesseduffield/lazygit/pkg/snake 0.049s
ok github.com/jesseduffield/lazygit/pkg/tasks 1.611s
ok github.com/jesseduffield/lazygit/pkg/theme 0.075s
? github.com/jesseduffield/lazygit/pkg/updates [no test files]
ok github.com/jesseduffield/lazygit/pkg/utils 0.022s
ok github.com/jesseduffield/lazygit/pkg/utils/yaml_utils 0.013s
FAIL

```

### To Reproduce
Steps to reproduce the behavior:

1. Get lazygit-0.65.0 [Source code (tar.gz)](https://github.com/jesseduffield/lazygit/archive/refs/tags/v0.65.0.tar.gz) tarball from release page, unpack and go into the `lazygit-0.65.0` directory
2. Build the lazygit with command `go build -o "bin/lazygit" -ldflags "-X main.version=0.65.0"`
3. Run tests with command `go test ./... -short`
4. See the error message:
```
2026/09/06 23:21:32 must run in lazy project folder or child folder
FAIL github.com/jesseduffield/lazygit/pkg/integration/components 0.062s
```
### Expected behavior
All tests are passed

### Version info: 0.64.1 and 0.65.0

### Terminal info:
What terminal are you using, and which version? For some types of bugs this information can be relevant.
I used konsole terminal.

### Additional context
**There is no similar error for tests with `lazygit-0.64.0` or early version tarballs.** When build from fetched github release-commit / latest commit `master` (c07f4d) there's no the same isssue. Is the message ` must run in lazy project folder or child folder` related to this failed `github.com/jesseduffield/lazygit/pkg/integration/components` test? How could I skip this test or should this test is moved from "short" set?

> [!NOTE]
> Please try updating to the latest version or [manually building](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure from the v0.65.0 source tarball with go test ./... -short, focusing on pkg/integration/components and the message about running in a lazy project folder. Compare this behavior with v0.64.0 and master, then verify that the appropriate tests pass for the affected release tarballs without incorrectly hiding the failure from the short test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
cli, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.