about summary refs log tree commit diff
path: root/tvix/derivation/src/write.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-23T13·18+0100
committerflokli <flokli@flokli.de>2023-01-23T13·40+0000
commitfc177af0c1dab6a4504e7e95c63507eb2a942e8f (patch)
tree28e07d30d8a1f220baaf833346ba2e81fe7c2ed2 /tvix/derivation/src/write.rs
parent5d856ac2e9b24f7b5a72346d8206cc366e1663ae (diff)
refactor(tvix/derivation): pass fingerprint to build_store_path r/5738
All of these occurences are actually sha256 digests of some fingerprint
- which means there's not a lot of need to do the hashing outside.
Instead of passing in a digest, keep the sha256 hasher in the function,
and pass in a fingerprint.

This makes it much easier to construct fingerprints using format!() in
all consumers, because we need don't need to juggle with the hasher
anymore.

Change-Id: I2dc3af2cab6cf06f55ae6cbd9a8be95faf2a07b6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7907
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to '')
-rw-r--r--tvix/derivation/src/write.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/tvix/derivation/src/write.rs b/tvix/derivation/src/write.rs
index 8874b5d35a..0f53281567 100644
--- a/tvix/derivation/src/write.rs
+++ b/tvix/derivation/src/write.rs
@@ -16,9 +16,6 @@ pub const BRACKET_CLOSE: char = ']';
 pub const COMMA: char = ',';
 pub const QUOTE: char = '"';
 
-pub const COLON: &str = ":";
-pub const TEXT_COLON: &str = "text:";
-pub const SHA256_COLON: &str = "sha256:";
 pub const DOT_FILE_EXT: &str = ".drv";
 
 fn write_array_elements(