jesseduffield / jesseduffield/lazygit

LazyGit Seemingly Not Reading in Config

Open
#2,406 18 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 am attempting to add an enterprise github service to my lazygit config. After adding `services` config and still being unable to open a PR against the enterprise instance, I started testing other configurations to debug. It looks like none of those are being read in either.

My config and proof of config location
```
❯ cat /Users/john.smith/.config/lazygit/config.yml
gui:
authorColors:
'John Smith': 'green'
'*': '#0000ff'
os:
editCommand: 'vim'
services:
'foo-github.com': 'github:foo-github.com'

❯ lazygit -cd
/Users/john.smith/.config/lazygit
```

**To Reproduce**
Steps to reproduce the behavior:

1. Check config directory with `lazygit -cd`
2. Create a new config in `$CONFIG_DIR/lazygit/config.yml`
3. Execut lazygit
4. Create PR, and check URL in PR is pointing to your enterprise github instance

**Expected behavior**
I'd expect that opening a PR uses the `services` config or errors if improperly configured.

**Version info:**
```
❯ lazygit --version
commit=, build date=, build source=homebrew, version=0.36.0, os=darwin, arch=amd64, git version=2.38.1
❯ git --version
git version 2.38.1
```

**Additional context**
Add any other context about the problem here.

As a side note- I attempted to debug but the log file is not being created after running with `--debug`.

**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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.