diff --git a/magic-nix-cache/src/flakehub.rs b/magic-nix-cache/src/flakehub.rs index 9a4a93b..e981aa0 100644 --- a/magic-nix-cache/src/flakehub.rs +++ b/magic-nix-cache/src/flakehub.rs @@ -38,14 +38,9 @@ pub async fn init_cache( store: Arc, using_dnixd: bool, ) -> Result { - 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| {