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

Safer sh_posix_configure on Windows #7

Merged
merged 1 commit into from
Dec 23, 2019
Merged

Conversation

aherrmann
Copy link
Member

Autodetection using repository_ctx.which is not safe on Windows, as it may turn up false friends. E.g. Windows has a find.exe which is unrelated to POSIX find. Instead we follow the example of @bazel_tools//tools/sh:sh_configure.bzl and use tools next to bash.exe.

This repository currently doesn't have Windows CI. However, rules_haskell's CI passes with these changes.

Autodetection using `repository_ctx.which` is not safe on Windows, as it
may turn up false friends. E.g. Windows has a `find.exe` which is
unrelated to POSIX `find`. Instead we use tools next to `bash.exe`.
Copy link
Member

@mboes mboes left a comment

Choose a reason for hiding this comment

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

Nice find, and nice solution.

@mboes mboes merged commit 84a706d into master Dec 23, 2019
@mergify mergify bot deleted the windows-posix-config branch December 23, 2019 20:55
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