-
Notifications
You must be signed in to change notification settings - Fork 841
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
batch unregistering with ghc-pkg-8.0.2 "syntax error" #4951
Comments
@lehins actually you just need to trigger rebuild for at least 2 packages. And it looks like our understanding of supported GHC version wasn't correct - with GHC 8.2.2 I don't get any problems:
Will check in GHC itself about proper versions. |
@qrilka Note also that in the above command duplicate
|
Oh, yes, you're completely right. |
Yes, it's still in the trac metadata — I may have misinterpreted the field, as much as anything else 🤦 |
I am going to close this issue given the passage of time, the fact that Stack no longer supports GHC < 8.4, and because #6222 address bulk ghc-pkg unregister. |
Please follow the steps below for reporting a bug:
Make sure that you are using the latest release (currently stack-2.1.1).
See the upgrade instructions to upgrade.
Please use the following schema for your bug report:
General summary/comments (optional)
From a few things I've tried with
ghc-pkg
and running--help
it has--ipid
, which is a flag and does not accept any arguments while here it is supplied many times:stack/src/Stack/GhcPkg.hs
Line 151 in 7e65b64
Also it says in the comment that ghc 8.0.1 supports batch unregistering, which might not be correct (at least with ghc-8.0.2), see the error message below in the ticket. I've tried running
ghc-pkg-8.2.2 unregister --ipid
with more than one package id and that did not produce any errors, so I suspect the statement in the above mentioned comment might not be correct.Steps to reproduce
We need to force stack to unregister more than one package.
For example:
packages
with resolverlts-9.21
stack build
.packages:
instack.yaml
stack clean
.stack build
.stack
continues building but produces an error message fromghc-pkg
Expected
Expect no errors printed
Actual
What actually happened.
Stack version
Method of installation
stack upgrade
The text was updated successfully, but these errors were encountered: