From 9ff3370ff7c5fa5892fc4bbb245585349c576054 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Tue, 10 Dec 2024 09:52:56 -0700 Subject: [PATCH] use replaceAll Signed-off-by: Meredith Lancaster --- pkg/cmd/attestation/download/download_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/attestation/download/download_test.go b/pkg/cmd/attestation/download/download_test.go index a25455409..6c2986065 100644 --- a/pkg/cmd/attestation/download/download_test.go +++ b/pkg/cmd/attestation/download/download_test.go @@ -26,7 +26,7 @@ var artifactPath = test.NormalizeRelativePath("../test/data/sigstore-js-2.1.0.tg func expectedFilePath(tempDir string, digestWithAlg string) string { var filename string if runtime.GOOS == "windows" { - filename = fmt.Sprintf("%s.jsonl", strings.Replace(digestWithAlg, ":", "-", 0)) + filename = fmt.Sprintf("%s.jsonl", strings.ReplaceAll(digestWithAlg, ":", "-")) } else { filename = fmt.Sprintf("%s.jsonl", digestWithAlg) }