refactor(tvix/nix-compat): rename NixHash::{digest,hash}
This doesn't return the digest, but the internal NixHash. To get the digest, you use `ca_hash.hash().digest_as_bytes()` (as done in tvix/nix-compat/src/derivation/write.rs). Change-Id: Ib07918dec63ae42ddf8c8d3f1d10510f9c4df255 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11070 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
7bebf492ec
commit
260c2938d4
3 changed files with 4 additions and 4 deletions
|
|
@ -137,8 +137,8 @@ pub(crate) fn write_outputs(
|
|||
|
||||
let (mode_and_algo, digest) = match &output.ca_hash {
|
||||
Some(ca_hash) => (
|
||||
format!("{}{}", ca_kind_prefix(ca_hash), ca_hash.digest().algo()),
|
||||
data_encoding::HEXLOWER.encode(ca_hash.digest().digest_as_bytes()),
|
||||
format!("{}{}", ca_kind_prefix(ca_hash), ca_hash.hash().algo()),
|
||||
data_encoding::HEXLOWER.encode(ca_hash.hash().digest_as_bytes()),
|
||||
),
|
||||
None => ("".to_string(), "".to_string()),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue