Merge pull request #15 from DeterminateSystems/hoverbear/fh-169-magic-nix-cache-priv-try-logging-in-to-flakehub-if-it-hasnt

Try logging into FlakeHub if nix-installer didn't do that for us
This commit is contained in:
Eelco Dolstra 2024-02-13 22:47:39 +01:00 committed by GitHub
commit 0537b74a1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,7 @@ async fn main_cli() {
Some(state)
}
Err(err) => {
tracing::error!("FlakeHub cache initialization failed: {}", err);
tracing::debug!("FlakeHub cache initialization failed: {}", err);
None
}
}
@ -221,10 +221,10 @@ async fn main_cli() {
.write_all(format!("extra-substituters = http://{}?trusted=1&compression=zstd&parallel-compression=true&priority=1\n", args.listen).as_bytes())
.expect("Writing to nix.conf");
tracing::info!("GitHub Action cache is enabled.");
tracing::info!("Native GitHub Action cache is enabled.");
Some(api)
} else {
tracing::info!("GitHub Action cache is disabled.");
tracing::info!("Native GitHub Action cache is disabled.");
None
};