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 configures the
gazelle_cabal
workspace to be compatible with bzlmod as a dependency module. Meaning another module can depend on it via bzlmod, howevergazelle_cabal
cannot itself be tested or built with bzlmod enabled, yet.This also configures the
example
workspace to be compatible with bzlmod as a root module. Meaning the example can be built and tested with bzlmod enabled.Enables bzlmod tests on CI, for now only for GHC version 9.4.5.
limitations / future work
tests
are not built with bzlmod, yet.The
alternative-deps
test requires renaming the stack snapshot workspace names tostackage-b
andstackage-b-exe
. This is currently not possible. One path would be aname
attribute tostack_snapshot
. However, this is not desirable as discussed in Allow using multiple stack snapshots in a MODULE.bazel rules_haskell#1962. Another approach is to use isolated extensions (requires Bazel 6.3) and remapping onuse_repo
. But,use_repo
uses keyword argument syntax for the remapping target, andstackage-b
orstackage-b-exe
do (AFAIK) not form valid identifiers in Starlark.The version number is factored out into a variable. A simple future improvement would be to simply change that variable in place in the CI pipeline to test other versions.
update-repos
does assume aWORKSPACE
setup.closes #63 #66