Turn off the GitHub actions cache if the user expresses no preference, and flakehub cache is in use

This commit is contained in:
Graham Christensen 2024-11-05 21:22:38 -05:00
parent 65060bc705
commit bf844027bc

View file

@ -367,7 +367,10 @@ async fn main_cli() -> Result<()> {
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");
let credentials = Credentials::load_from_env()