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.
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
Fix build and tests with GHC-9.4.3 and 9.2.5 #3364
Fix build and tests with GHC-9.4.3 and 9.2.5 #3364
Changes from 1 commit
efba374
322c03b
5e51777
b3d0bd2
3e6d8ca
12efbd6
4b5bdb8
f1e2481
eca61d1
4e489cb
362b8d2
23a6279
c359743
c6f1a0a
8a491f5
b474547
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
why is this needed?
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.
Ah, a good question. Without this seemingly unnecessary constraint, Cabal somehow manages to pull
ghc-exactprint-1.6.0
- presumably because there's a dependency of dependency that's asking for it. And CI tests kept failing.With this addition, all the relevant tests passed (that is - at least, until I started applying changes to address suggestions ;).
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.
I really think this needs to go in the right place. It shouldn't be that hard to figure out. At the very least it needs a clear comment explaining this.
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.
I attempted to find the right place - starting with attempts to put it in
plugins/hls-refactor-plugin
andghcide
. Failed miserably in both cases - tests kept failing. Please feel free to pitch a hand and locate that right place - I don't know nearly enough to dig deeper. I tried to search/grep forexactprint
, and did not come up with anything helpful (besides the above, which did not help either).If you do know that right place, please share. Or, perhaps, create a new PR - I'm already up to my ears in the bog of CI that I don't understand.
The current workaround was prompted by observation that
works.
How would you want me to explain it? Just copy-paste this post into the
.cabal
file?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.
It is not necessary, afaict, this worked for me out of the box:
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.
Interesting - perhaps,
index-state
changed since...? Should I updateindex-state
in this PR too?Also, have you tried just
cabal build -w ghc-9.4.3
(to build whatever's there)?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.
Since you updated the index-state in cabal.project, you locally need to make sure your global index-state is newer than the one in cabal.project (which you added). So just running
cabal update
in the project or outside of it should do the trick.Yeah, works just the same. It'd be weird if cabal didn't choose the most recent version of 'ghc-exactprint'.