-
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
Detect extra-deps missing from indices #1858
Conversation
* it should now detect typos commercialhaskell#1521 (package suggestions will be added in another PR)
2a95c77
to
8144ae6
Compare
Awesome, thanks! Can these please get turned into a warning? Having it as an error like this is indeed more straightforward, however, having this as an error rules out the following use cases:
This may be a bit tricky when they're also accompanied by build plan failures as in the example in #1521 . Ideally they'd come at the end of the output in that case, since it's probably the issue. I haven't looked at how the code would need to change to do that. Feel free to keep this as an exception constructor even if it's never thrown. |
Oh, I see! yes, definitely this should be delayed till later.
stack can have Hmm should extra-deps coming through the cli still error out, though, to match |
looks like something for #1745 could help with display order of warnings |
Yep, I encourage you to work on #1745 if you want to! Particularly if it makes the implementation of this cleaner (it probably would). I haven't thought about it thoroughly, but this could look like adding some There's no need to go and convert all the existing warnings and such to this system, that could be done incrementally. It might make sense to write something that just handles this particular usecase well, and generalize from there. |
Stack used to silently accept
extra-deps
from config or cli that were missing from indices.It now errors out when they are not found
(will add package suggestions for typos in another PR)
fixes #1521