From f1b76f599e5b3e07c4ada1a6086b8b13fa85e7f6 Mon Sep 17 00:00:00 2001 From: Rob Best Date: Sun, 10 Apr 2022 11:04:58 +0100 Subject: [PATCH] Remove newline from download sbom output fmt.Fprintln inserts a newline that isn't in the original payload. This frustrates the process of comparing the sha256sum of the output to the original. Signed-off-by: Rob Best --- cmd/cosign/cli/download/sbom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cosign/cli/download/sbom.go b/cmd/cosign/cli/download/sbom.go index ba6208c704d..82f107c263e 100644 --- a/cmd/cosign/cli/download/sbom.go +++ b/cmd/cosign/cli/download/sbom.go @@ -62,7 +62,7 @@ func SBOMCmd(ctx context.Context, regOpts options.RegistryOptions, imageRef stri } sboms = append(sboms, string(sbom)) - fmt.Fprintln(out, string(sbom)) + fmt.Fprint(out, string(sbom)) return sboms, nil }