Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

New NEAR_NETWORK doesn't handle NEAR_ENV value #1107

Closed
mikedotexe opened this issue Mar 3, 2024 · 1 comment
Closed

New NEAR_NETWORK doesn't handle NEAR_ENV value #1107

mikedotexe opened this issue Mar 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mikedotexe
Copy link
Contributor

Describe the bug
Until a month ago, NEAR CLI has used NEAR_ENV when setting the network, like mainnet and testnet.
If folks have differing values on those two environment variables, it will use the old one that's not mentioned in the documentation: https://docs.near.org/tools/near-cli

Screenshot 2024-03-03 at 11 36 46 AM

To Reproduce
See screenshot above

Expected behavior
As a user, if I follow the NEAR CLI documentation, I should be able to correctly target the network of choice and not have confusion.

Or perhaps this is a simple order of operations where the newly declared environment variable (NEAR_NETWORK) takes precedence over NEAR_ENV.

@mikedotexe mikedotexe added the bug Something isn't working label Mar 3, 2024
@gagdiez
Copy link
Contributor

gagdiez commented Mar 4, 2024

released a new version with a warning message that states NEAR_NETWORK will have precedence over NEAR_ENV, will update the docs to also reflect this

@gagdiez gagdiez closed this as completed Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants