From 7dec14fc1a80f6f7c0a6da83f581d5322c728228 Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 26 Apr 2025 15:46:23 -0400 Subject: [PATCH] set path to nar in narinfo --- src/make_nar.rs | 2 -- src/uploader.rs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/make_nar.rs b/src/make_nar.rs index 6e8d512..e1ca57c 100644 --- a/src/make_nar.rs +++ b/src/make_nar.rs @@ -86,7 +86,5 @@ impl<'a> MakeNar<'a> { file_size: Some(self.file_size), url: "", }) - // signature consists of: store_path, nar_hash, nar_size, and references - // nar_info.add_signature(self.signing_key); } } diff --git a/src/uploader.rs b/src/uploader.rs index c9c49f0..0832a58 100644 --- a/src/uploader.rs +++ b/src/uploader.rs @@ -57,6 +57,8 @@ impl<'a> Uploader<'a> { debug!("moving {} to {}", temp_path, real_path); // this is implemented as a copy-and-delete s3.rename(&temp_path, &real_path).await?; + // set nar url in narinfo + nar_info.url = real_path.as_ref(); // upload narinfo let narinfo_path = self.path.narinfo_path();