Closed
Description
Describe the bug
Unable to use 'gh auth login' without manually creating '.config/gh/config.yml' file on windows.
Steps to reproduce the behavior
- Install GitHub CLI 1.10.1
- Run 'gh auth login'
- Auth via Browser
Expected vs actual behavior
Expected: Authentication successful.
Actual:
Manually creating the file referenced results in a successful auth.
Logs
E:>gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: XXX-XXX
Press Enter to open github.com in your browser...
failed to authenticate via web browser: open C:\Users\benmc\.config\gh\config.yml: The system cannot find the path specified.
GitHub CLI 1.10.1
Windows 10 Pro 21H1 19043.985