@@ -113,7 +113,7 @@ impl ImageReference {
113
113
// TODO maintain a proper transport enum in the spec here
114
114
let transport = Transport :: try_from ( self . transport . as_str ( ) ) ?;
115
115
match transport {
116
- Transport :: ContainerStorage | Transport :: Registry => {
116
+ Transport :: Registry => {
117
117
let reference: oci_spec:: distribution:: Reference = self . image . parse ( ) ?;
118
118
119
119
// Check if the image reference needs canonicicalization
@@ -350,11 +350,6 @@ mod tests {
350
350
format ! ( "quay.io/example/someimage@{}" , sample_digest) ,
351
351
"registry" ,
352
352
) ,
353
- (
354
- format ! ( "quay.io/example/someimage:latest@{}" , sample_digest) ,
355
- format ! ( "quay.io/example/someimage@{}" , sample_digest) ,
356
- "containers-storage" ,
357
- ) ,
358
353
// When only a digest is present, it should be used
359
354
(
360
355
format ! ( "quay.io/example/someimage@{}" , sample_digest) ,
@@ -385,7 +380,12 @@ mod tests {
385
380
format ! ( "localhost/someimage@{sample_digest}" ) ,
386
381
"registry" ,
387
382
) ,
388
- // Also for now, we do not canonicalize OCI references
383
+ // Other cases are not canonicalized
384
+ (
385
+ format ! ( "quay.io/example/someimage:latest@{}" , sample_digest) ,
386
+ format ! ( "quay.io/example/someimage:latest@{}" , sample_digest) ,
387
+ "containers-storage" ,
388
+ ) ,
389
389
(
390
390
format ! ( "/path/to/dir:latest" ) ,
391
391
format ! ( "/path/to/dir:latest" ) ,
0 commit comments