From e8ae5ba89d4c92d79972cdf27f9bd98f4b7cb26c Mon Sep 17 00:00:00 2001 From: Radu M Date: Thu, 20 Feb 2020 17:07:29 -0800 Subject: [PATCH] Remove references of old function for splitting target and references Signed-off-by: Radu M --- Makefile | 2 +- pkg/tuf/sign.go | 1 - pkg/tuf/verify.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e3255f1..4fa2ae9 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ ORG := cnabio BINDIR := $(CURDIR)/bin GOFLAGS := GOBUILDTAGS := osusergo -LDFLAGS := +LDFLAGS := -w -s ifeq ($(OS),Windows_NT) TARGET = $(PROJECT).exe diff --git a/pkg/tuf/sign.go b/pkg/tuf/sign.go index 9b0ab76..80da6ab 100644 --- a/pkg/tuf/sign.go +++ b/pkg/tuf/sign.go @@ -15,7 +15,6 @@ func SignAndPublish(trustDir, trustServer, ref, file, tlscacert, rootKey, timeou return nil, fmt.Errorf("cannot ensure trust directory: %v", err) } - // gun, name := cnab.SplitTargetRef(ref) repoInfo, tag, err := getRepoAndTag(ref) if err != nil { return nil, fmt.Errorf("cannot get repo and tag from reference: %v", err) diff --git a/pkg/tuf/verify.go b/pkg/tuf/verify.go index c2c3a37..faaed65 100644 --- a/pkg/tuf/verify.go +++ b/pkg/tuf/verify.go @@ -76,7 +76,6 @@ func verifyTargetSHAFromBytes(target *client.TargetWithRole, buf []byte) error { // GetTargetAndSHA returns the target with roles and the SHA256 of the target file func GetTargetAndSHA(ref, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, string, error) { - // gun, name := cnab.SplitTargetRef(ref) repoInfo, tag, err := getRepoAndTag(ref) if err != nil { return nil, "", fmt.Errorf("cannot get repo and tag from reference: %v", err)