-
Notifications
You must be signed in to change notification settings - Fork 81
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
Setup script example project fails on macOS #1016
Comments
I can reproduce. This appears to be happening because on Darwin the patching in https://github.com/tweag/rules_haskell/blame/master/haskell/ghc_bindist.bzl#L224-L232 needs to be modified. |
@symbiont-joseph-kachmar Could you give #1017 a spin? |
As noted in #884, we have CI jobs to cover {(linux, bindists), (linux, nixpkgs), (macos, nixpkgs)}, but not (macos, bindist). We better add it, because even simple and very old tools like sed can't be assumed to behave in exactly the same way on all platforms. :-/ |
Looks good, thanks! |
Has this actually been fixed? I'm still getting the same issue with the the start script from master
|
@axman6 that error is due to the start script assuming a |
Can you help me out with what I'd need to change? I'm just trying to follow the tutorial and have no idea what's going on |
@axman6 If you take a look at this snippet you can see the modifications I made to the All I did was grab the commit hash where the changes were introduced and updated both the archive link and SHA256 hash to reflect these changes. Otherwise you should be good to go; feel free to use that repository as a small reference, if it helps. |
@jkachmar Thanks for that, that looks like it's working. Looking forward to playing with this |
Description
The
rules_haskell
setup script creates an example project that does not successfully build on macOS using the GHC bindist toolchain.Running
bazel build //...
in the example project created by the setup script results in the following error:When the version of
rules_haskell
in theWORKSPACE
file is modified to point to the latest commit (06519dfd30ab78bf70bccc01afffde704b1677afed98bf669e023e8c1ea7e68e
at the time of writing), the build gets much further but fails with a different error message:Steps To Reproduce
curl https://haskell.build/start | sh
in a fresh directoryWORKSPACE
file specifiesrules_haskell
version 0.9.1bazel build //...
WORKSPACE
file to point torules_haskell
commit06519dfd30ab78bf70bccc01afffde704b1677afed98bf669e023e8c1ea7e68e
bazel build //...
Expected behavior
The setup script and initial
bazel build //...
should succeed in a fresh directory on macOS with the GHC bindist toolchain.Environment - First Attempt
Environment - Second Attempt
The text was updated successfully, but these errors were encountered: