You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
When building on my Mac I ran into this issue, which I fixed with export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 in my shell. But when I ran the tests under //hrepl/tests (via run_tests.sh) I noticed that many of them (but not all) failed with the same error in the logs. (Sorry, I don't have the complete list handy, but atomic_primops_test was one of them.)
It seems that the BAZEL_USE_CPP_ONLY_TOOLCHAIN environment variable doesn't make its way into the builds that hrepl itself is doing (which makes sense, since it should try to be hermetic). Unfortunately the only workaround I could find was to edit ReplTestLib.hs and manually add it to the constructed environment. This clearly isn't a good permanent solution since it's Mac-specific.
First I should mention that I needed to upgrade my
rules_haskellversion for the project to build at all. MyWORKSPACElooks like:When building on my Mac I ran into this issue, which I fixed with
export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1in my shell. But when I ran the tests under//hrepl/tests(viarun_tests.sh) I noticed that many of them (but not all) failed with the same error in the logs. (Sorry, I don't have the complete list handy, butatomic_primops_testwas one of them.)It seems that the
BAZEL_USE_CPP_ONLY_TOOLCHAINenvironment variable doesn't make its way into the builds thathreplitself is doing (which makes sense, since it should try to be hermetic). Unfortunately the only workaround I could find was to editReplTestLib.hsand manually add it to the constructed environment. This clearly isn't a good permanent solution since it's Mac-specific.