feat(tvix/derivation): more checks for output hashes and encoding
Change-Id: Idebad60c3bf9daf94d04a36bb73ac0dd767f9e79 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7856 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
083e24bbb1
commit
9822fa387a
5 changed files with 33 additions and 2 deletions
|
|
@ -47,4 +47,10 @@ pub enum DerivationError {
|
|||
pub enum OutputError {
|
||||
#[error("Invalid ouput path {0}: {1}")]
|
||||
InvalidOutputPath(String, ParseStorePathError),
|
||||
#[error("Invalid hash encoding: {0}")]
|
||||
InvalidHashEncoding(String, data_encoding::DecodeError),
|
||||
#[error("Invalid hash algo: {0}")]
|
||||
InvalidHashAlgo(String),
|
||||
#[error("Invalid Digest size {0} for algo {1}")]
|
||||
InvalidDigestSizeForAlgo(usize, String),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue