Skip to content

cargo info requires login #14409

@ehuss

Description

@ehuss

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

  1. Set up config.toml with:
[registry]
global-credential-providers = ["false"]
  1. Run cargo info syn
  2. 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: bugCommand-infoS-triageStatus: This issue is waiting on initial triage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions