cli
cli copied to clipboard
Login fails when _netrc is hidden
Related issue: https://github.com/heroku/cli/issues/186
What is the current behavior?
On Windows, if the _netrc file is marked as hidden, heroku login fails:
attrib +h ~/_netrc
heroku login
heroku: Waiting for login...
Logging in... done
Error: EPERM: operation not permitted, open 'C:/Users/myuser/_netrc'
What is the expected behavior?
It should not fail because the file is still writable
echo test >> ~/_netrc
^ this command executes successfully
CLI version: heroku/7.59.1 win32-x64 node-v14.18.1
Related: https://github.com/libuv/libuv/pull/3380