Skip to content

Commit 1c9671a

Browse files
author
Stef Graces
committed
Fix replace with non compliant image mediatypes
Signed-off-by: Stef Graces <[email protected]>
1 parent eac84af commit 1c9671a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/oci/mutate/signatures.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ package mutate
1717

1818
import (
1919
v1 "github.com/google/go-containerregistry/pkg/v1"
20-
"github.com/google/go-containerregistry/pkg/v1/empty"
2120
"github.com/google/go-containerregistry/pkg/v1/mutate"
2221
"github.com/sigstore/cosign/v2/internal/pkg/now"
2322
"github.com/sigstore/cosign/v2/pkg/oci"
23+
"github.com/sigstore/cosign/v2/pkg/oci/empty"
2424
)
2525

2626
const maxLayers = 1000
@@ -83,7 +83,7 @@ func ReplaceSignatures(base oci.Signatures) (oci.Signatures, error) {
8383
Annotations: ann,
8484
})
8585
}
86-
img, err := mutate.Append(empty.Image, adds...)
86+
img, err := mutate.Append(empty.Signatures(), adds...)
8787
if err != nil {
8888
return nil, err
8989
}

0 commit comments

Comments
 (0)