Skip to content

Commit

Permalink
Fix empty image test - use the image digest and not its name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pvlerick committed Jun 24, 2023
1 parent a731d94 commit 1fb14c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oci/layout/oci_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (ref ociReference) DeleteImage(ctx context.Context, sys *types.SystemContex

newManifests := make([]imgspecv1.Descriptor, 0, len(index.Manifests)-1)
for _, v := range index.Manifests {
if v.Annotations[imgspecv1.AnnotationRefName] != ref.image {
if v.Digest != descriptor.Digest {
newManifests = append(newManifests, v)
}
}
Expand Down

0 comments on commit 1fb14c8

Please sign in to comment.