-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read-only config conflicts with pop-up dismissal #818
Comments
Interesting. Is this an issue you encounter with other apps? I wonder if the best solution is to specify the location of a different config file from within the read-only one, unless that is also off-limits? |
I encounter it sometimes in other apps, but they typically say something like “hey, I can’t write my coming file. Just FYI.” instead of crashing. I guess a writeable section would work but it seems like it would add way more complications to your life! What about bailing on the write operation with a warning if the file can't be written? |
Seems to me we could, wherever |
Whoops just came across this issue again and I had forgotten the resolution was to show an error to the user within lazygit. At the moment we're silently failing. Will need to fix that up |
Describe the bug
I version my dotfiles with nix and home-manager, which puts immutable versions of all my config files into the right places for me. I've seen a lot of benefits from doing this, like being able to set my MBP up again in record time after Apple wipes it every time they have to replace the keyboard 🙄
Anyway, it turns out that this doesn't work for lazygit because it expects to be able to write the config file.
To Reproduce
Make the config file read-only (
chmod -w config.yml
oughta do it) then try and dismiss the tracking or news popups.Expected behavior
The popups are dismissed and I can use
lazygit
normally.Actual behavior
Desktop (please complete the following information):
20.09pre221814.10100a97c89
Other Information
I can get around this by setting
reporting
andstartupPopupVersion
in my config, which I've done, but I'm guessing that this'll come up everytime that version needs to increment.The text was updated successfully, but these errors were encountered: