-
-
Notifications
You must be signed in to change notification settings - Fork 367
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 install hls from hackage using ghc 9.0.1 #2322
Conversation
Deprecate them as they will be removed when all tests are moved to their own plugin packages
Diabling actual upload if the branch contains 'check'
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.
LGTM! I guess we still need the multiple cabal.project
s? I guess the ghc-9 ones should switch to setting force-plugins
or whatever we call it.
Slightly off-topic, but looking at the cabal.projects, could we make the ghc-9 parts into something that could be used as cabal.project.local
? That would avoid the need to repeat themselves so much, then they would basically just set force-plugins
and add source-repository-package
s or whatever?
haskell-language-server.cabal
Outdated
@@ -196,94 +189,94 @@ common example-plugins | |||
Ide.Plugin.Example2 | |||
|
|||
common class | |||
if flag(class) || flag(all-plugins) | |||
if flag(class) && (impl(ghc < 9.0.1) || flag(force-plugins)) |
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.
Also, it might be neat to put a comment on each of these linking to the issue that describes the blocker, so if keen people end up here they know what to look for!
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.
ya, i also miss that in the actual cabal-ghc<version>.project
so it will improve things
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 tried (and got it somewhat work) here: #2241 |
Hmm I see there were various reasons not to do it. Maybe Pepe's idea of trying to make a ghc9-compatible main |
It is an option but it has its own caveats: we will use for all ghc versions package versions not in hackage. And make actual bounds work with not needed I am for trying hard to remove all |
Right: if the main cabal.project is clean from those, then we should be able to release to Hackage at any time, with some plugins disabled as per the cabal files. Whereas otherwise we could accidentally make that impossible again. |
@pepeiborra thoughts about this approach to make possible the hackage release for ghc-9.0.1? EDIT: i've seen you reacted positively to the pr itself so i guess is fine to merge, thanks! |
haskell-language-server.cabal
, the only config file seen by hackage buildsignore-plugins-ghc-bounds
to allow custom builds out of hackage force the inclusion of plugins, supposelly addingallow-newer
orremote-source-packages
in acabal.project
all-plugins
andall-formatters
as afaics they are almost useless with actual default values for them and individual plugin flags and being used with||
in conditionstest-func
as almost all plugins were moved to their own packages. Deprecate the remaining ones as hopefully they will be moved sooner or latercabal-ghc921-project
which afaiu does not workThis has not been done earlier cause i thought we should "publish" a complete version of hls in hackage. Assuming that it would not take so long to be achieved as it did.