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
invalid config file ~/.config/gh/hosts.yml: invalid format #5949
Comments
This happened to me too, a few weeks ago. Still an issue for me and I'm currently investigating. |
This just happened after updating to the latest version of the
|
Additional information and how I fixed the issue on my machine:
I'm wondering if maybe the latest version of the gh cli tool auto-creates an empty cc @troldmand & @hpsaturn , can you see if this also resolves your issue? Obviously this doesn't fix root cause, but may be a workaround for folks in the meantime. |
mmm, maybe you want say: remove the |
@hpsaturn, I think it makes sense to keep this issue open. Although there is a work-around to resolve the issue when it happens (delete the file), I would guess that there is a bug in the cli which is causing this to happen. It's happened on multiple different machines independently. |
I will reopen to investigate what could have made the file empty in the first place. Does anyone affected by this have XDG_CONFIG_HOME environment variable set or remembers what version did they upgrade gh from? |
@mislav I do not have I upgraded from |
Also had this issue, deleting file fixed. Homebrew on mac. |
Describe the bug
Today I try to create a new issue and I have this error.
Steps to reproduce the behavior
gh --version
Also I reinstalled the CLI using debian package alternartive.
Output
the file mentioned in the error is empty. I never used or touch it.
Environment:
The text was updated successfully, but these errors were encountered: