Fix monitoring/caching of imported project files#11567
Fix monitoring/caching of imported project files#11567hasufell wants to merge 5 commits intohaskell:masterfrom
Conversation
|
Actually... this assert happens with upstream cabal as well. Looks like I ran over another bug. |
|
I will return to look at this in detail. Can you alter your test or add another project to the tests so that its imports are relative to each other and not all in the same folder. This issue has some discussion on relative imports, introduced in |
2443bac to
e0b7900
Compare
|
A couple of patches, more indirection with the imports and one Add-more-indirection-for-project-imports.patch I made a typo you may like to correct: - assertOutputDoesNotContain "Test suite not yet implement" result'
+ assertOutputDoesNotContain "Test suite not yet implemented" result' |
c3ea457 to
504ccd5
Compare
| module Main (main) where | ||
|
|
||
| main :: IO () | ||
| main = puStrLn "Test suite not yet implemented." |
There was a problem hiding this comment.
Is this intentional to make the test fail to compile?
980e55c to
9d5dcb3
Compare
|
I redesigned |
00a4e5f to
ac6d6c4
Compare
'lookupLocalPackageConfig' would ignore 'projectConfigAllPackages' (`package *`) and thus diverge from 'lookupPerPkgOption'. This would then cause further divergence between 'elabStanzasRequested' and 'elabStanzasAvailable'.
9d96a0b to
aa45123
Compare
This behavior is documented, but not enforced. We redesign the 'ProjectConfigPath' type to better express the properties we expect.
| , directory >= 1.2 && < 1.4 | ||
| , filepath >= 1.3.0.1 && < 1.6 | ||
| , mtl >= 2.1 && < 2.4 | ||
| , network-uri >= 2.6.0.2 && < 2.7 |
There was a problem hiding this comment.
Unfortunately we cannot do it: Cabal-syntax is a boot package and cannot depend on a non-boot network-uri.
Bodigrim
left a comment
There was a problem hiding this comment.
Looks good except the last commit; perhaps needs a changelog?..
See #10255
However, it appears there's still a bug in the patch, where the following assert gets triggered after I change the imported
cabal.project.commonfile:cabal/cabal-install/src/Distribution/Client/ProjectPlanning.hs
Lines 268 to 272 in d67898a