mirror of
https://github.com/containers/skopeo.git
synced 2025-09-16 15:00:14 +00:00
Don‘t write the mainfest digest on stdout in (skopeo copy)
The dir: source type does not return the value, the value is untrusted/not validated, and it is not at all clear why we should print it in the first place.
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/codegangsta/cli"
|
||||
@@ -41,11 +40,10 @@ func copyHandler(context *cli.Context) {
|
||||
}
|
||||
signBy := context.String("sign-by")
|
||||
|
||||
manifest, digest, err := src.GetManifest()
|
||||
manifest, _, err := src.GetManifest()
|
||||
if err != nil {
|
||||
logrus.Fatalf("Error reading manifest: %s", err.Error())
|
||||
}
|
||||
fmt.Printf("Canonical manifest digest: %s\n", digest)
|
||||
|
||||
layers, err := manifestLayers(manifest)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user