set path to nar in narinfo

This commit is contained in:
cy 2025-04-26 15:46:23 -04:00
parent d524222a86
commit 7dec14fc1a
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,5 @@ impl<'a> MakeNar<'a> {
file_size: Some(self.file_size), file_size: Some(self.file_size),
url: "", url: "",
}) })
// signature consists of: store_path, nar_hash, nar_size, and references
// nar_info.add_signature(self.signing_key);
} }
} }

View file

@ -57,6 +57,8 @@ impl<'a> Uploader<'a> {
debug!("moving {} to {}", temp_path, real_path); debug!("moving {} to {}", temp_path, real_path);
// this is implemented as a copy-and-delete // this is implemented as a copy-and-delete
s3.rename(&temp_path, &real_path).await?; s3.rename(&temp_path, &real_path).await?;
// set nar url in narinfo
nar_info.url = real_path.as_ref();
// upload narinfo // upload narinfo
let narinfo_path = self.path.narinfo_path(); let narinfo_path = self.path.narinfo_path();