don't do anything cahash cause serde fails to parse sometimes
This commit is contained in:
parent
5111af1d34
commit
df8d3a0bc6
2 changed files with 2 additions and 3 deletions
|
@ -2,8 +2,8 @@ use std::collections::HashSet;
|
||||||
|
|
||||||
use anyhow::{Context, Error, Result};
|
use anyhow::{Context, Error, Result};
|
||||||
use aws_sdk_s3 as s3;
|
use aws_sdk_s3 as s3;
|
||||||
|
use nix_compat::nixbase32;
|
||||||
use nix_compat::store_path::StorePath;
|
use nix_compat::store_path::StorePath;
|
||||||
use nix_compat::{nixbase32, nixhash::CAHash};
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use tokio::process::Command;
|
use tokio::process::Command;
|
||||||
|
@ -18,7 +18,6 @@ pub struct PathInfo {
|
||||||
pub path: StorePath<String>,
|
pub path: StorePath<String>,
|
||||||
signatures: Vec<String>,
|
signatures: Vec<String>,
|
||||||
pub references: Vec<StorePath<String>>,
|
pub references: Vec<StorePath<String>>,
|
||||||
pub ca: Option<CAHash>,
|
|
||||||
}
|
}
|
||||||
impl PathInfo {
|
impl PathInfo {
|
||||||
/// get PathInfo for a package or a store path
|
/// get PathInfo for a package or a store path
|
||||||
|
|
|
@ -157,7 +157,7 @@ impl<'a> Uploader<'a> {
|
||||||
nar_size: nar.len() as u64,
|
nar_size: nar.len() as u64,
|
||||||
references: self.path.references.iter().map(StorePath::as_ref).collect(),
|
references: self.path.references.iter().map(StorePath::as_ref).collect(),
|
||||||
signatures: Vec::new(),
|
signatures: Vec::new(),
|
||||||
ca: self.path.ca.clone(),
|
ca: None,
|
||||||
system: None,
|
system: None,
|
||||||
deriver: Some(self.path.deriver.as_ref()),
|
deriver: Some(self.path.deriver.as_ref()),
|
||||||
compression: Some("zstd"),
|
compression: Some("zstd"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue