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:
Miloslav Trmač
2016-05-11 17:36:02 +02:00
parent a4fba7b0a0
commit 6db8872406

View File

@@ -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 {