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
Describe the bug
The internal GHC version selection mechanism introduced in #1923 does affect down-stream use-sites.
To Reproduce
The bzlmod version of the Gazelle Cabal example test suite introduced in tweag/gazelle_cabal#60, shows the following message in its build log:
DEBUG: /home/runner/.cache/bazel/_bazel_runner/d4965fa66ed01d1aeec095f0355d1939/external/rules_haskell~override/haskell/private/ghc_ci.bzl:11:14: Using GHC version 9.4.5 from env variable `GHC_VERSION`
In this case the GHC toolchain is configured via Nix.
Expected behavior
I did not expect the GHC version selection logic used for rules_haskell's own CI to trigger in a use-site like the Gazelle Cabal example.
module_ctx.modules only contains the modules that use the extension, if the
root module does not use it, the first module in that list is not the root module.
Fixes#1967
Describe the bug
The internal GHC version selection mechanism introduced in #1923 does affect down-stream use-sites.
To Reproduce
The bzlmod version of the Gazelle Cabal example test suite introduced in tweag/gazelle_cabal#60, shows the following message in its build log:
In this case the GHC toolchain is configured via Nix.
Expected behavior
I did not expect the GHC version selection logic used for rules_haskell's own CI to trigger in a use-site like the Gazelle Cabal example.
Environment
Additional context
none
The text was updated successfully, but these errors were encountered: