Skip to content

Commit a394a45

Browse files
committed
fix: switch hash-path calculation
Signed-off-by: Max Dymond <max.dymond@alianza.com>
1 parent 2bb8bc9 commit a394a45

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/volumes.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ fn prefix_cache(shared: bool, config_filepath: &path::Path) -> String {
4444
fn hash_path(path: &path::Path) -> String {
4545
let mut hasher = Sha256::new();
4646
hasher.update(path.as_os_str().as_bytes());
47-
format!("{:x}", hasher.finalize())
47+
hasher
48+
.finalize()
49+
.iter()
50+
.map(|b| format!("{b:02x}"))
51+
.collect()
4852
}
4953

5054
#[cfg(test)]

0 commit comments

Comments
 (0)