refactor(tvix/derivation): expose proper ValidateDerivationError

Use proper errors, instead of anyhow.

Change-Id: I6db14c72a6319b389b0136aac7b84f50a30fb366
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7847
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-01-16 15:24:02 +01:00 committed by flokli
parent 95cad95b93
commit d644ed389a
7 changed files with 109 additions and 30 deletions

View file

@ -1,4 +1,5 @@
mod derivation;
mod errors;
mod nix_hash;
mod output;
mod string_escape;
@ -11,4 +12,5 @@ mod tests;
// Public API of the crate.
pub use derivation::Derivation;
pub use errors::ValidateDerivationError;
pub use output::{Hash, Output};