-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Fix building on 32-bit systems #1127
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop/v2 #1127 +/- ##
==============================================
+ Coverage 72.00% 75.10% +3.09%
==============================================
Files 93 95 +2
Lines 13795 11941 -1854
==============================================
- Hits 9933 8968 -965
+ Misses 3044 2157 -887
+ Partials 818 816 -2 ☔ View full report in Codecov by Sentry. |
I'm not sure how to appease CodeQL at this point. It's a false positive but nothing I do seems to make it happy. |
Thanks, but I'm a bit reluctant to merge something that I can't test. |
Sadly GH Actions runs on amd64, and Docker runs 64-bit containers on 64-bit operating systems like our laptops. Simplest thing you can do to test this, if you're on a Linux box with cd examples
GOOS=linux GOARCH=arm GOARM=7 go test The
If you check out this PR, you'll see the build passes and the tests (running using emulation) work. |
@ItalyPaleAle Well, I wanted to make sure I get to test and fix the CodeQL problem. Anyways. I see how you verified the 32-bit compilation, so I've dug in and isolated the problem down to #1129 . This way there's no CodeQL shenanigans, and I think Go on 32-bit arch can compile it. Does this work for you? |
Did not take it personally at all, your request was very valid and reasonable :) #1129 LGTM and I think will fix the problem while making CodeQL happy. I'll close this PR. Thanks! |
Builds on 32-bit systems are failing:
This changes how 32-bit systems are detected in a way that doesn't cause the error. Although this does remove 16-bit systems from the
case
, the Go compiler does not support any 16-bit system at present (and it's very unlikely it ever will).