Skip to content

Commit

Permalink
Remove newline from download sbom output (#1732)
Browse files Browse the repository at this point in the history
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 <robertbest89@gmail.com>
  • Loading branch information
ribbybibby authored Apr 10, 2022
1 parent 311b8c4 commit a172932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/download/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a172932

Please sign in to comment.