mirror of
https://github.com/containers/skopeo.git
synced 2025-09-18 07:54:32 +00:00
Update for github.com/containers/image API change
github.com/containers/image/copy.Image() now returns the copied manifest, so we at least need to ignore it. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@@ -88,7 +88,7 @@ func copyHandler(c *cli.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
return copy.Image(context.Background(), policyContext, destRef, srcRef, ©.Options{
|
||||
_, err = copy.Image(context.Background(), policyContext, destRef, srcRef, ©.Options{
|
||||
RemoveSignatures: removeSignatures,
|
||||
SignBy: signBy,
|
||||
ReportWriter: os.Stdout,
|
||||
@@ -96,6 +96,7 @@ func copyHandler(c *cli.Context) error {
|
||||
DestinationCtx: destinationCtx,
|
||||
ForceManifestMIMEType: manifestType,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
var copyCmd = cli.Command{
|
||||
|
Reference in New Issue
Block a user