From 9947f4c5edae1ebf42ee40458a314a68fb06de10 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 23 Apr 2024 15:35:10 -0700 Subject: [PATCH] wip: add more debug lines --- magic-nix-cache/src/flakehub.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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) }