Skip to content

Commit

Permalink
fixed build feature
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed May 9, 2024
1 parent 91ccb46 commit dba2fa9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,8 @@ impl FileSystemClient {
let disable_interactive =
cfg!(not(feature = "cli-interactive")) || config.disable_interactive;

if cfg!(feature = "keyring") && auth_token.is_none() && config.keyring_auth {
#[cfg(feature = "keyring")]
if auth_token.is_none() && config.keyring_auth {
auth_token = crate::keyring::get_auth_token(&url)?
}

Expand Down Expand Up @@ -1279,7 +1280,8 @@ impl FileSystemClient {
let disable_interactive =
cfg!(not(feature = "cli-interactive")) || config.disable_interactive;

if cfg!(feature = "keyring") && auth_token.is_none() && config.keyring_auth {
#[cfg(feature = "keyring")]
if auth_token.is_none() && config.keyring_auth {
auth_token = crate::keyring::get_auth_token(&registry_url)?
}

Expand Down

0 comments on commit dba2fa9

Please sign in to comment.