Write manifest of pre-build rule monitored files#11776
Open
sheaf wants to merge 1 commit intohaskell:masterfrom
Open
Write manifest of pre-build rule monitored files#11776sheaf wants to merge 1 commit intohaskell:masterfrom
sheaf wants to merge 1 commit intohaskell:masterfrom
Conversation
2a320ca to
dacb056
Compare
After executing pre-build rules for a component, `cabal-install` now
writes a manifest file to the `pre-build-monitors` file in the
component's build directory.
This manifest contains:
1. The files that are monitored by the pre-build rules computation.
When any of these change, we need to re-run the computation of
pre-build rules.
2. File dependencies of the pre-build rules. When any of these change,
we need to re-run rules (the recompilation checking logic will take
care to only re-run stale rules).
3. Rule outputs, i.e. files generated by the pre-build rules.
Writing this information to a file makes it available to external tools
such as HLS, without needing to link against the Cabal library.
This allows external tools to know when to re-run the pre-build rules.
dacb056 to
45e9e27
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Companion to HLS PR #4923.
After executing pre-build rules for a component,
cabal-installnow writes a manifest file to thepre-build-monitorsfile in the component's build directory.This manifest contains:
Writing this information to a file makes it available to external tools such as HLS, without needing to link against the Cabal library. This allows external tools to know when to re-run the pre-build rules.
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR: