-
Notifications
You must be signed in to change notification settings - Fork 671
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 to makefile for OSX/Darwin #724
Conversation
Codecov Report
@@ Coverage Diff @@
## master #724 +/- ##
=======================================
Coverage 85.32% 85.32%
=======================================
Files 64 64
Lines 3993 3993
=======================================
Hits 3407 3407
Misses 399 399
Partials 187 187 Continue to review full report at Codecov.
|
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
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.
Please sign your commits.
Sorry, added GPG signature to commit, rebased and pushed again. Also signed-off on my own commit. |
Makefile
Outdated
@@ -8,7 +8,7 @@ SERVICES = users things http normalizer ws coap lora influxdb-writer influxdb-re | |||
DOCKERS = $(addprefix docker_,$(SERVICES)) | |||
DOCKERS_DEV = $(addprefix docker_dev_,$(SERVICES)) | |||
CGO_ENABLED ?= 0 | |||
GOOS ?= linux | |||
GOOS ?= $(shell go env GOOS || echo linux) |
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.
GOOS ?= $(go env GOOS)
should also work for linux
Can you please also add this ones:
GOARCH ?= $(go env GOARCH)
GOARM ?= $(go env GOARM)
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.
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.
Sure thing! But in my testing it needed shell
keyword.
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.
It's working for us on Linux and OS X without this keyword. Why you need it?
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.
Without the shell keyword I'm pretty sure the shell does not get invoked. It doesn't work for me without shell keyword, I just get an empty string.
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.
@mandric might be that Makefile demands this. Let me re-check.
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.
Yes, I checked - shell
keyword is needed, so please just add it.
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.
Another option that works on OSX here is just remove the GOOS ?= linux
line.
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.
Here is where it was added: https://github.com/mainflux/mainflux/pull/196
84945ce
to
f78e877
Compare
Signed-off-by: Milan Andric <[email protected]>
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
Meged! @mandric welcome to Mainflux contributors club ;). |
Awesome, thank you! |
Signed-off-by: Milan Andric <[email protected]>
Signed-off-by: Milan Andric <[email protected]>
Signed-off-by: Milan Andric <[email protected]>
No description provided.