make deriver optional cause it won't be there if path is a derivation
This commit is contained in:
parent
df8d3a0bc6
commit
6b959f583b
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ use url::Url;
|
|||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct PathInfo {
|
||||
pub deriver: StorePath<String>,
|
||||
pub deriver: Option<StorePath<String>>,
|
||||
pub path: StorePath<String>,
|
||||
signatures: Vec<String>,
|
||||
pub references: Vec<StorePath<String>>,
|
||||
|
|
|
@ -159,7 +159,7 @@ impl<'a> Uploader<'a> {
|
|||
signatures: Vec::new(),
|
||||
ca: None,
|
||||
system: None,
|
||||
deriver: Some(self.path.deriver.as_ref()),
|
||||
deriver: self.path.deriver.as_ref().map(|x| x.as_ref()),
|
||||
compression: Some("zstd"),
|
||||
file_hash: None,
|
||||
file_size: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue