-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add support for ghc 9.0.2 #2567
Conversation
jneira
commented
Jan 5, 2022
•
edited by gitpod-io
bot
Loading
edited by gitpod-io
bot
- It misses the nix config
- We have to check the gitlab build
- Closes Please, support GHC 9.0.2 #2541
.github/workflows/test.yml
Outdated
@@ -144,7 +147,7 @@ jobs: | |||
|
|||
run: cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" | |||
|
|||
- if: matrix.test && matrix.ghc != '9.0.1' | |||
- if: matrix.test && matrix.ghc != '9.0.1' && matrix.ghc != '9.0.2' |
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 wonder what would happen if we did this unconditionally but set the test suite to not be buildable on GHC 9 🤔 might error, might just succeed...
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.
hmm i think it is good to build it even if the tests are gonna fail, or it will rot even with compile errors.
We are building all the test suites (with tests: true
) and cabal doesnt have runnable: false
😉
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.
Yeah, fair.
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.
An alternative is mark them as ignored or broken for that hls version using tasty modifiers, but we are not using them that way for now
There is no release of hie-bios with support for GHC 9.0.2 yet. Going to make one now. |
We don't need a whole new |
Is there any way to avoid introducing a
|
Thanks for putting this together! FWIW I tried to build it with I had to add |
thank for trying, circleci is asking unix too, will try to fix it asap |
i am for renaming to |
after adding unix ci reached the error commented by @thomasjm for primitive-unlifted:
|
issue in the ghc issue tracker: https://gitlab.haskell.org/ghc/ghc/-/issues/20908 😟 |
The solution is to use primitive-unlifted < 1.0
|
thanks for the suggestion, it is not a direct dependency of hls so i guess it will be hard to make the hackage build works although we can force that version using cabal.project/stack.yaml |
Ok we hit the hie-bios error with cabal:
so we have to upgrade hie-bios In stack we got another error, already pointed out by @thomasjm :
|
We cant use 9.0.2 until all deps do not need allow-newer
And bump up index state to get lastest hie-bios
As expected the caching workflow was succesful: https://github.com/jneira/haskell-language-server/runs/4804786986?check_suite_focus=true |
@michaelpj @Anton-Latukha I ve changed the caching workflow to build bench deps adding some comments (and in other workflow filed) hope it makes thing a little bit clearer |
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 was Ok with previous (pre 9.2.1
changes merge), & I am Ok with the recently mentioned caching
changes.
The new caching workflow has been succesful here: https://github.com/jneira/haskell-language-server/actions/runs/1704688585 |