-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C-bugCategory: bugCategory: bugCommand-infoS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
Running cargo info foo
seems to require a login to crates.io. I would not expect a simple information command to require authentication (or for those with a hardware token, a hardware key) to access it.
Steps
- Set up config.toml with:
[registry]
global-credential-providers = ["false"]
- Run
cargo info syn
- See that it fails:
Updating crates.io index
error: credential provider `false` failed action `get`
Caused by:
failed to deserialize hello
Caused by:
EOF while parsing a value at line 1 column 0
Possible Solution(s)
I'm guessing this is because of the call to try_list_owners
. I do not think cargo info
should be trying to access API endpoints that require authentication.
Notes
No response
Version
commit-hash: ff6df29857a5fc5f6bb0b9da8436cb501ee5894c
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugCommand-infoS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.