cli icon indicating copy to clipboard operation
cli copied to clipboard

Login fails when _netrc is hidden

Open sryze opened this issue 4 years ago • 1 comments

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

sryze avatar Nov 12 '21 10:11 sryze

Related: https://github.com/libuv/libuv/pull/3380

sryze avatar Jan 01 '22 16:01 sryze