Monitor imported cabal.project files#11884
Closed
philderbeast wants to merge 1 commit into
Closed
Conversation
a8c983d to
d18f91f
Compare
b91d469 to
49c2625
Compare
Collaborator
Author
|
Putting this back to draft. I've added some debug logging and found more things to test for and other issues to raise. |
046b397 to
1578b11
Compare
cc57ff1 to
5828db0
Compare
54ecd79 to
52c81d0
Compare
3745e7e to
22ae2d1
Compare
6 tasks
dcb23c5 to
aa5df8d
Compare
34 tasks
6 tasks
aa5df8d to
72cdab8
Compare
- Fixes haskell#10255 - Fix assertion failure wrt haskell#11568 'lookupLocalPackageConfig' would ignore --'projectConfigAllPackages' (`package *`) and thus diverge from 'lookupPerPkgOption'. This would then cause further divergence between 'elabStanzasRequested' and 'elabStanzasAvailable'. Change arg order with perPkgOptionFlag, def first Use function composition for perPkgOption* Add type sigs for all perPkgOption* functions Inline each perPkgOption* only used once Use -XViewPatterns in perPkgOptionLibExeFlag Partially apply then use lookupPerPkgOption Move Map.fromList in list comprehension Use -XViewPattern in Just pkgId branch Defer (TestStanzas,) & (BenechStanzas,) tuples Remove lookupLocalPackageConfig Remove unused parameters form read...Gen Remove -Wno-unused-matches - Remove clean from test, leave note
b99df43 to
2050029
Compare
Collaborator
Author
This was referenced Jul 3, 2026
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.
I started with #11567 by @hasufell.
I then reverted a lot of changes not related to (or no longer needed for) monitoring before attempting a rebase. To make the rebase easier I also squashed those changes into one commit.
I then rebased over master once #10933 merged, so that we could match on whether an import was local file or a URI.
Important
This pull request avoids taking on this redesign:
That is not to say we shouldn't do this or something similar but it is not needed to fix project file monitoring.
ProjectNodecould maybe help in a future redesign?cabal/cabal-install/src/Distribution/Client/ProjectConfig/Import.hs
Lines 85 to 90 in 92829a5
Note
I changed these items after rebasing:
-Wunused-top-bindswarning forlookupLocalPackageConfigbyre-exportingdeleting itlookupPerPkgOption'cabal.project.localandcabal.project.freezeI'll squash commits before applying the merge label if this pull request is approved.
significance: significantin the changelog file.