-
Notifications
You must be signed in to change notification settings - Fork 407
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
Set GOARM based on platform.variant #239
Conversation
pkg/build/gobuild_test.go
Outdated
variant, err := getGoarm(tc.platform) | ||
if tc.err { | ||
if err == nil { | ||
t.Errorf("getGoarm expected err for: %v", tc.platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you tripped the Victor linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do I do??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vehemently disagree with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @vagababov
This has the error message that doesn't show the correct suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.Error("getGoarm...:", tc.Platform)
is what it wants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it my own way!
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
==========================================
+ Coverage 36.78% 37.19% +0.41%
==========================================
Files 33 33
Lines 1441 1460 +19
==========================================
+ Hits 530 543 +13
- Misses 822 828 +6
Partials 89 89
Continue to review full report at Codecov.
|
This relies on some hard-coded knowledge of the go compiler, which is unfortunate, so we will have to update this if things change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I no longer see the message.
This relies on some hard-coded knowledge of the go compiler, which is
unfortunate, so we will have to update this if things change.
Fixes #235
Note that the last layer is the binary:
The last layers are different, which indicates that we build different artifacts based on the variant: