From c8476f41e2617a4a1612d3f7cad297957f986531 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 19 May 2025 14:03:45 -0400 Subject: [PATCH] Fix build on 32bit platforms Reproduce with: $ GOARCH=386 go test -v github.com/notaryproject/notation-go ./notation_test.go:763:26: cannot use math.MaxInt64 (untyped int constant 9223372036854775807) as int value in struct literal (overflows) FAIL github.com/notaryproject/notation-go [build failed] FAIL Signed-off-by: Reinhard Tartler Signed-off-by: Simon Josefsson --- notation_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notation_test.go b/notation_test.go index 81398510..3e7782b8 100644 --- a/notation_test.go +++ b/notation_test.go @@ -760,7 +760,7 @@ func TestLocalContent(t *testing.T) { // verify the artifact verifyOpts := VerifyOptions{ ArtifactReference: artifactReference, - MaxSignatureAttempts: math.MaxInt64, + MaxSignatureAttempts: math.MaxInt, } policyDocument := dummyPolicyDocument() verifier := dummyVerifier{&policyDocument, mock.PluginManager{}, false, *trustpolicy.LevelStrict, false}