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

Enable it build on Windows by unixunix-compat transition #114

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

develop7
Copy link
Contributor

Use unix-compat in place of unix, enabling the project to build for Windows too.

Unfortunately, had to leave process.owner field empty because a non-POSIX getEffectiveUserID implementation is absent in unix-compat (for reasons described in haskell-pkg-janitors/unix-compat#2 (comment)). Please let me know if the conditional compilation approach is welcome here, I'll update the code appropriately.

A possible fix for #109.

@iand675
Copy link
Owner

iand675 commented May 29, 2024

Thanks for the PR! I really don't want to drop tryGetUser, so I'd prefer the conditional compilation approach. If you rebase against main, you'll also pick up the new CI configuration.

@develop7
Copy link
Contributor Author

I'd prefer the conditional compilation approach

Done, check it out. A CI config for Windows is in order as well, let me know if that's a must.

Extracts platform-dependent code to OpenTelemetry.Platform module
@develop7 develop7 force-pushed the fix-windows-drop-getpwuid branch from 224e9a7 to 9b2cec0 Compare June 20, 2024 11:47
@develop7
Copy link
Contributor Author

develop7 commented Aug 1, 2024

Gentle ping @iand675 @kakkun61

Copy link
Collaborator

@kakkun61 kakkun61 left a comment

Choose a reason for hiding this comment

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

Looks good

@develop7
Copy link
Contributor Author

develop7 commented Aug 9, 2024

@iand675 do you want me to introduce CI on Windows as well?

@michaelpj
Copy link
Collaborator

It would be good to have some windows CI, but this seems like a definite improvement nonetheless. Could you add a note to the Changelog? Then I'll merge.

@develop7
Copy link
Contributor Author

@michaelpj done and done!

@develop7
Copy link
Contributor Author

Speaking of windows CI, I'm working on it at https://github.com/develop7/hs-opentelemetry/tree/ci-windows_builds

@michaelpj michaelpj merged commit 3bf7bed into iand675:main Oct 29, 2024
8 checks passed
@michaelpj
Copy link
Collaborator

Thanks!

@develop7 develop7 mentioned this pull request Nov 4, 2024
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.

4 participants