Cargo suggests _TOKEN environment variable even when it would not be applicable #12642
Labels
A-credential-provider
Area: credential provider for storing and retreiving credentials
A-registry-authentication
Area: registry authentication and authorization (authn authz)
When a registry token cannot be found, or a token is invalid, cargo displays an error recommending
cargo login
.Starting in rust 1.67 with #10592, the message was amended to include the environment variable that could also be used to include the token.
With
-Z credential-process
, ifcargo:token
is not inregistry.global-credential-providers
orregistries.<NAME>.credential-provider
the suggested environment variable will not work.The text was updated successfully, but these errors were encountered: