-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
use CGO to enable fsevent on OSX [ENV-37] #10249
Conversation
Codecov ReportBase: 72.79% // Head: 73.89% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## v2 #10249 +/- ##
==========================================
+ Coverage 72.79% 73.89% +1.10%
==========================================
Files 2 2
Lines 272 272
==========================================
+ Hits 198 201 +3
+ Misses 62 60 -2
+ Partials 12 11 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
RUN --mount=type=bind,target=. \ | ||
--mount=type=cache,target=/root/.cache \ | ||
--mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=bind,from=osxcross,src=/osxsdk,target=/xx-sdk \ | ||
xx-go --wrap && \ | ||
if [ "$(xx-info os)" == "darwin" ]; then export CGO_ENABLED=1; fi && \ |
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.
Maybe default CGO_ENABLED to 0 on the other platforms? Not sure if it gets set elsewhere.
if [ "$(xx-info os)" == "darwin" ]; then export CGO_ENABLED=1; fi && \ | |
export CGO_ENABLED=0 && \ | |
if [ "$(xx-info os)" == "darwin" ]; then CGO_ENABLED=1; fi && \ |
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 is set by default on https://github.com/docker/compose/blob/v2/Dockerfile#L91
f3fca5a
to
effb4e8
Compare
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
What I did
use CGO so we can rely on fsevent for
compose watch
on MacOS(not mandatory) A picture of a cute animal, if possible in relation to what you did