Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix build on 32bit platforms #500

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siretart
Copy link

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 [email protected]

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 <[email protected]>
Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.47%. Comparing base (cefd007) to head (a88461b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #500   +/-   ##
=======================================
  Coverage   80.47%   80.47%           
=======================================
  Files          35       35           
  Lines        3344     3344           
=======================================
  Hits         2691     2691           
  Misses        508      508           
  Partials      145      145           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@Two-Hearts Two-Hearts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
@siretart the commit needs to be signed before merging.

@shizhMSFT shizhMSFT changed the title Fix build on 32bit platforms test: fix build on 32bit platforms Dec 27, 2024
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FeynmanZhou
Copy link
Member

@siretart Thanks for adding 32bit arch support. Would you mind sharing your use case? I am curious on your scenario.

@siretart
Copy link
Author

siretart commented Dec 27, 2024

I'm packaging this library for Debian, and we test it on like a dozen different architectures.

The use case can be described as having the notation cli binary prebuilt for as many architectures as possible so that it can be made available a regular Debian package and available via apt install notation

@JeyJeyGao
Copy link
Contributor

@siretart Could you sign your commit by follow the guide. Also please rebase the main branch. Thank you!

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants