-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Breaking Makefile into platform specific files. #1388
Conversation
Solaris doesn't support the "-race" test flags option, so that should be removed from Makefile.solaris. |
663463c
to
742e7bb
Compare
thanks for pointing out. Updated the file. |
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.
Thanks for starting this work @kunalkushwaha; couple minor things noted, otherwise LGTM
Makefile
Outdated
TESTFLAGS_RACE= -race | ||
endif | ||
|
||
#include platform sepcific makefile |
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.
typo: s/sepcific/specific/
Makefile
Outdated
endif | ||
|
||
#include platform sepcific makefile | ||
include Makefile.${GOOS} |
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.
Given we use parenthesis instead of curly brace as a variable delimiter throughout this Makefile, seems like we should use it for consistency here (even though functionally it doesn't matter)
COMMANDS += containerd-shim | ||
|
||
# supports go test -race | ||
TESTFLAGS_RACE= -race |
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.
can we get a newline at the ends of the files? :)
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.
added newline in each file.
742e7bb
to
aeb8711
Compare
Codecov Report
@@ Coverage Diff @@
## master #1388 +/- ##
=======================================
Coverage 40.81% 40.81%
=======================================
Files 23 23
Lines 2923 2923
=======================================
Hits 1193 1193
Misses 1452 1452
Partials 278 278 Continue to review full report at Codecov.
|
updated with changes requested. |
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.
LGTM
/cc @stevvooe
LGTM This is a good start. |
NOT LGTM This breaks make && sudo make install
🇩 bin/ctr
🇩 bin/containerd
🇩 bin/containerd-stress
🇩 bin/containerd-shim
🇩 binaries
Makefile:50: Makefile.$GOOS: No such file or directory
make: *** No rule to make target 'Makefile.$GOOS'. Stop.
|
792e0af
to
808f636
Compare
Since, platform specific |
67f2fd7
to
1c98958
Compare
Fixed containerd#1270 Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
Looks like using @crosbymichael PTAL |
LGTM |
@kunalkushwaha thanks for taking care of |
Fixes #1270
Signed-off-by: Kunal Kushwaha kushwaha_kunal_v7@lab.ntt.co.jp