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:
commit
0537b74a1e
|
@ -190,7 +190,7 @@ async fn main_cli() {
|
||||||
Some(state)
|
Some(state)
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
tracing::error!("FlakeHub cache initialization failed: {}", err);
|
tracing::debug!("FlakeHub cache initialization failed: {}", err);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,10 +221,10 @@ async fn main_cli() {
|
||||||
.write_all(format!("extra-substituters = http://{}?trusted=1&compression=zstd¶llel-compression=true&priority=1\n", args.listen).as_bytes())
|
.write_all(format!("extra-substituters = http://{}?trusted=1&compression=zstd¶llel-compression=true&priority=1\n", args.listen).as_bytes())
|
||||||
.expect("Writing to nix.conf");
|
.expect("Writing to nix.conf");
|
||||||
|
|
||||||
tracing::info!("GitHub Action cache is enabled.");
|
tracing::info!("Native GitHub Action cache is enabled.");
|
||||||
Some(api)
|
Some(api)
|
||||||
} else {
|
} else {
|
||||||
tracing::info!("GitHub Action cache is disabled.");
|
tracing::info!("Native GitHub Action cache is disabled.");
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue