balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
452 stars 138 forks source link

If you have both a .resinrc.yml and a .balenarc.yml, the latter should take precedence #1422

Open hedss opened 5 years ago

hedss commented 5 years ago

balena login produces the following:

 _            _
| |__   __ _ | |  ____  _ __    __ _
| '_ \ / _` || | / __ \| '_ \  / _` |
| |_) | (_) || ||  ___/| | | || (_) |
|_.__/ \__,_||_| \____/|_| |_| \__,_|

Logging in to resin.io
? How would you like to login? (Use arrow keys)
❯ Web authorization (recommended)
  Credentials
  Authentication token
  I don't have a balena account!

The reference to resin.io should be balena-cloud.com.

pdcastro commented 5 years ago

When I run balena login here, it already says Logging in to balena-cloud.com. The code indicates that the value comes from balena-sdk / settings / balenaUrl: https://github.com/balena-io/balena-cli/blob/v11.9.3/lib/actions/auth.coffee#L114

@hedss, perhaps you have a ~/.resinrc.yml file in your homedir, setting balenaUrl to resin.io?

hedss commented 4 years ago

@pdcastro Good spot. There's an issue here though, in that if you have both a .resinrc.yml and a .balenarc.yml, the latter should take precedence IMHO, given we've now renamed.