@@ -381,9 +381,10 @@ fn human_render_imagestatus(
381
381
let prefix_len = prefix. chars ( ) . count ( ) ;
382
382
writeln ! ( out, "{prefix}: {imageref}" ) ?;
383
383
384
+ let arch = image. architecture . as_str ( ) ;
384
385
write_row_name ( & mut out, "Digest" , prefix_len) ?;
385
386
let digest = & image. image_digest ;
386
- writeln ! ( out, "{digest}" ) ?;
387
+ writeln ! ( out, "{digest} ({arch}) " ) ?;
387
388
388
389
// Format the timestamp without nanoseconds since those are just irrelevant noise for human
389
390
// consumption - that time scale should basically never matter for container builds.
@@ -477,11 +478,11 @@ mod tests {
477
478
. expect ( "No spec found" ) ;
478
479
let expected = indoc:: indoc! { r"
479
480
Staged image: quay.io/example/someimage:latest
480
- Digest: sha256:16dc2b6256b4ff0d2ec18d2dbfb06d117904010c8cf9732cdb022818cf7a7566
481
+ Digest: sha256:16dc2b6256b4ff0d2ec18d2dbfb06d117904010c8cf9732cdb022818cf7a7566 (arm64)
481
482
Version: nightly (2023-10-14T19:22:15Z)
482
483
483
484
● Booted image: quay.io/example/someimage:latest
484
- Digest: sha256:736b359467c9437c1ac915acaae952aad854e07eb4a16a94999a48af08c83c34
485
+ Digest: sha256:736b359467c9437c1ac915acaae952aad854e07eb4a16a94999a48af08c83c34 (arm64)
485
486
Version: nightly (2023-09-30T19:22:16Z)
486
487
" } ;
487
488
similar_asserts:: assert_eq!( w, expected) ;
@@ -511,7 +512,7 @@ mod tests {
511
512
. expect ( "No spec found" ) ;
512
513
let expected = indoc:: indoc! { r"
513
514
Staged image: quay.io/centos-bootc/centos-bootc:stream9
514
- Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38
515
+ Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38 (s390x)
515
516
Version: stream9.20240807.0
516
517
517
518
● Booted ostree
@@ -527,7 +528,7 @@ mod tests {
527
528
. expect ( "No spec found" ) ;
528
529
let expected = indoc:: indoc! { r"
529
530
● Booted image: quay.io/centos-bootc/centos-bootc:stream9
530
- Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38
531
+ Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38 (arm64)
531
532
Version: stream9.20240807.0
532
533
" } ;
533
534
similar_asserts:: assert_eq!( w, expected) ;
@@ -548,7 +549,7 @@ mod tests {
548
549
. unwrap ( ) ;
549
550
let expected = indoc:: indoc! { r"
550
551
● Booted image: oci:/var/mnt/osupdate
551
- Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38
552
+ Digest: sha256:47e5ed613a970b6574bfa954ab25bb6e85656552899aa518b5961d9645102b38 (amd64)
552
553
Version: stream9.20240807.0
553
554
" } ;
554
555
similar_asserts:: assert_eq!( w, expected) ;
0 commit comments