wip: add more debug lines

This commit is contained in:
Cole Helbling 2024-04-23 15:35:10 -07:00
parent e82dde9ac7
commit 9947f4c5ed

View file

@ -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)
}