Skip to content

Commit

Permalink
Drop the assertion around the netrc under dnixd
Browse files Browse the repository at this point in the history
Not sure the implications of this, but let's try this.
  • Loading branch information
grahamc authored Sep 17, 2024
1 parent 5b126b6 commit ccd942a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions magic-nix-cache/src/flakehub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ pub async fn init_cache(
store: Arc<NixStore>,
using_dnixd: bool,
) -> Result<State> {
if using_dnixd {
let dnixd_state_dir: &Path = Path::new(&crate::DETERMINATE_STATE_DIR);
let expected_netrc_path = dnixd_state_dir.join("netrc");
if flakehub_api_server_netrc != expected_netrc_path {
let err = format!("flakehub-api-server-netrc was ({}), expected ({}) since determinate-nixd is available", flakehub_api_server_netrc.display(), expected_netrc_path.display());
return Err(error::Error::Config(err));
}
}
dbg!(using_dnixd);
dbg!(flakehub_api_server_netrc);

// Parse netrc to get the credentials for api.flakehub.com.
let netrc = {
let mut netrc_file = File::open(flakehub_api_server_netrc).await.map_err(|e| {
Expand Down

0 comments on commit ccd942a

Please sign in to comment.