Skip to content

Commit 6f51f10

Browse files
oci: fix printing of "already" layer IDs
When we already have a layer, we print a message saying as much. In fb1de9f ("src/fsverity: up our FsVerityHashValue trait game") we accidentally changed this to use the debug trait. This would have been correct if we were printing a layer ID, but this is an array, so we see the bytes if we do that. Revert to the previous behaviour. Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent a50ea8e commit 6f51f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oci/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<'repo, ObjectID: FsVerityHashValue> ImageOp<'repo, ObjectID> {
105105

106106
if let Some(layer_id) = self.repo.check_stream(layer_sha256)? {
107107
self.progress
108-
.println(format!("Already have layer {layer_sha256:?}"))?;
108+
.println(format!("Already have layer {}", hex::encode(layer_sha256)))?;
109109
Ok(layer_id)
110110
} else {
111111
// Otherwise, we need to fetch it...

0 commit comments

Comments
 (0)