Turn off the GitHub actions cache if the user expresses no preference, and flakehub cache is in use
This commit is contained in:
parent
65060bc705
commit
bf844027bc
|
@ -367,7 +367,10 @@ async fn main_cli() -> Result<()> {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
let gha_cache = if args.github_cache_preference() != CacheTrinary::Disabled {
|
let gha_cache = if (args.github_cache_preference() == CacheTrinary::Enabled)
|
||||||
|
|| (args.github_cache_preference() == CacheTrinary::NoPreference
|
||||||
|
&& flakehub_state.is_none())
|
||||||
|
{
|
||||||
tracing::info!("Loading credentials from environment");
|
tracing::info!("Loading credentials from environment");
|
||||||
|
|
||||||
let credentials = Credentials::load_from_env()
|
let credentials = Credentials::load_from_env()
|
||||||
|
|
Loading…
Reference in a new issue