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
Since there is a file that depends on plutus-core/cost-model/data/builtinCostModel.json using addDependentFile, I would expect modifying it to trigger a rebuild.
System information
NixOS
cabal 3.8.1
ghc 9.2.4
Additional context
We've confirmed that this works on cabal 3.6.2, and not on 3.8.1. I've tried a few semi-random things to try and get cabal to notice the change:
Move the file to the package root to avoid directory separators in the pattern.
Remove all the other extra-source-files
Explicitly add a call to addDependentFile <path> to the relevant module.
Changing to use a wildcard match on the file extension
Bumping the cabal-version of the cabal file
Add the package directory to the extra-source-file path in case there was a CWD mixup and it was looking from the project root somehow.
None of these have worked.
The text was updated successfully, but these errors were encountered:
First I want to clear up a confusion. As far as I know, addDependentFilenever was tracked by cabal. What did happen was there was a patch (#6889) to add extra source files to cabal's rebuild tracking. I would very much like to figure out why that seems to no longer work.
[EDIT -- for now I think I found the flag to twiddle to stop requiring the nix shell]
Additionally, can it be that this tracking works in a single cabal package, but it is the introduction of multiple packages in a joint cabal-project that breaks it?
gbaz
changed the title
Cabal 3.8 does not appear to track addDependentFile dependencies correctly
Cabal 3.8 does not appear to track extra-source-file rebuilds correctly
Dec 24, 2022
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
It's large, but here's the reproducer: https://github.com/input-output-hk/plutus
Expected behavior
Since there is a file that depends on
plutus-core/cost-model/data/builtinCostModel.json
usingaddDependentFile
, I would expect modifying it to trigger a rebuild.System information
Additional context
We've confirmed that this works on cabal 3.6.2, and not on 3.8.1. I've tried a few semi-random things to try and get cabal to notice the change:
extra-source-files
addDependentFile <path>
to the relevant module.cabal-version
of the cabal fileextra-source-file
path in case there was a CWD mixup and it was looking from the project root somehow.None of these have worked.
The text was updated successfully, but these errors were encountered: