-
Notifications
You must be signed in to change notification settings - Fork 205
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
Bazelify ghc-lib #12508
Bazelify ghc-lib #12508
Conversation
2f711b2
to
9373f47
Compare
8a10cbf
to
2180050
Compare
95c8353
to
3f7797f
Compare
7ab677b
to
630a5fd
Compare
0fc996c
to
9401904
Compare
96f988b
to
a12168d
Compare
dac6c33
to
2ae4a7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but I'd prefer if someone from Language approved.
The GHC sources are patched in the same way as the `CI.hs` script in `ghc-lib` would: https://github.com/digital-asset/ghc-lib/blob/362d4f38a7ac10521393de9b7ad942a77a2605be/CI.hs#L282
This reverts commit 3ed522e.
These patches are integrated into the ghc fork directly. Remove parts of the documentation that are no longer valid (e.g. you cannot easily inspect the desugared parser dump).
I have removed the patches to da-ghc as requested, rebased onto main, and the CI is green again. PTAL Also see digital-asset/ghc#119 which should be merged first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you Claudio!
Since #12508, ghc-lib is build within Bazel and this job can be removed. CHANGELOG_BEGIN CHANGELOG_END
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.
TODO
stack
from theghc-lib(-parser)
sdist generation rule inputs, on both Windows and Unix.ghc-lib
external dependencies fromWORKSPACE
intobazel_tools/ghc-lib/repositories.bzl
.bundle.bzl
anddev_env_tool.bzl
.bazel_tools/ghc-lib/defs.bzl|repositories.bzl
. In particular, document the indirection w.r.t.BUILD.ghc(-lib)
to avoid refetch on changes.bazel_tools/ghc-lib/README.md
the update and patching procedures. I.e. how to update the GHC revision, how to update the ghc-lib revision, how to update any of the needed patches.cabal-update
runnable targets tobazel_tools/ghc-lib/ghc-lib(-parser)
to update the respective Cabal files after the GHC revision changed.--override_repository
flag.GHC_REV
once Add changes required by DAML ghc#119 is mergedFollow Up
ci/da-ghc-lib/compile.yml
.bundle.bzl
anddev_env_tool.bzl
torules_sh
.