Skip to content
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

Merged
merged 2 commits into from
Feb 10, 2023
Merged

use CGO to enable fsevent on OSX [ENV-37] #10249

merged 2 commits into from
Feb 10, 2023

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Feb 7, 2023

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
Uploading image.png…

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Base: 72.79% // Head: 73.89% // Increases project coverage by +1.10% 🎉

Coverage data is based on head (12c9d48) compared to base (5b043c4).
Patch has no changes to coverable lines.

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     
Impacted Files Coverage Δ
pkg/e2e/framework.go 72.15% <0.00%> (+1.17%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ndeloof ndeloof marked this pull request as ready for review February 7, 2023 20:04
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team February 7, 2023 20:08
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 && \
Copy link
Member

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.

Suggested change
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 && \

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndeloof ndeloof marked this pull request as draft February 8, 2023 16:10
@ndeloof ndeloof force-pushed the CGO branch 3 times, most recently from f3fca5a to effb4e8 Compare February 10, 2023 15:02
@ndeloof ndeloof marked this pull request as ready for review February 10, 2023 15:09
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants