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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

develop7
Copy link

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
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
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.

None yet

2 participants