Test multiple GHC versions with bzlmod. #68
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This completes #66.
Depends on #60.
Depends on tweag/rules_haskell#1968.
Previously, rules_haskell would configure a Stackage snapshot and import packages declared as regular dependencies. This meant that these configurations were visible to downstream users and could conflict with downstream snapshot configuration, e.g. missing packages.
This runs CI on the examples tests with bzlmod enabled for multiple GHC versions. This requires configuring the GHC version. Since the GHC version number needs to be declared in the MODULE.bazel file to import the Nix provided GHC toolchain, we have to find a way to change this setting in the MODULE.bazel file for different CI matrix branches.
MODULE.bazel does not support
load
or any other similar way to change such configuration. Instead, the CI script simply replacese the GHC version number (factored out into a dedicated variable) in MODULE.bazel.