Skip to content

Commit

Permalink
Remove references of old function for splitting target and references
Browse files Browse the repository at this point in the history
Signed-off-by: Radu M <root@radu.sh>
  • Loading branch information
Radu M committed Feb 21, 2020
1 parent 7f6e308 commit e8ae5ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ORG := cnabio
BINDIR := $(CURDIR)/bin
GOFLAGS :=
GOBUILDTAGS := osusergo
LDFLAGS :=
LDFLAGS := -w -s

ifeq ($(OS),Windows_NT)
TARGET = $(PROJECT).exe
Expand Down
1 change: 0 additions & 1 deletion pkg/tuf/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion pkg/tuf/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8ae5ba

Please sign in to comment.