diff --git a/magic-nix-cache/src/flakehub.rs b/magic-nix-cache/src/flakehub.rs index 0aa2ced..9684ee3 100644 --- a/magic-nix-cache/src/flakehub.rs +++ b/magic-nix-cache/src/flakehub.rs @@ -306,9 +306,15 @@ async fn rewrite_github_actions_token( tokio::fs::write(&netrc_path_tmp, new_netrc_contents) .await .with_context(|| format!("writing new JWT to {netrc_path_tmp:?}"))?; + tracing::warn!("{:?}", &netrc_path_tmp); + tracing::warn!("{:?}", tokio::fs::metadata(&netrc_path_tmp).await); + tracing::warn!("{:?}", tokio::fs::symlink_metadata(&netrc_path_tmp).await); tokio::fs::rename(&netrc_path_tmp, &netrc_path) .await .with_context(|| format!("renaming {netrc_path_tmp:?} to {netrc_path:?}"))?; + tracing::warn!("{:?}", &netrc_path_tmp); + tracing::warn!("{:?}", tokio::fs::metadata(&netrc_path_tmp).await); + tracing::warn!("{:?}", tokio::fs::symlink_metadata(&netrc_path_tmp).await); Ok(new_github_jwt_string) }