-
Notifications
You must be signed in to change notification settings - Fork 710
Have cabal target
show the impossible
#10766
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
Comments
If I "force the solver" as suggested, the target is still not shown. We see the solver error message:
|
I would have thought
Also |
Mhhh not a big fan (depending on the UI), imagine for packages with many examples like |
This issue looks like it is related to #7883. The problem is that the solver currently only enables tests with a preference, not a hard constraint, unless |
Describe the bug
If the build plan does not exist then the targets that do exist but are impossible to build are not shown with
cabal target
.To Reproduce
With the following
.cabal
file that is buildable, the one test suite is shown as a target.If I now alter the package, adding an impossible to satisfy constraint then the target is not shown.
build-tool-depends: markdown-unlit:markdown-unlit > 0.5.0 && <= 0.6 + build-tool-depends: markdown-unlit:markdown-unlit <0
Expected behavior
If the target exists in the package, buildable or not, then show it as a target, maybe annotating or separately listing unbuildable ones. This would include
buildable: False
ones too.The text was updated successfully, but these errors were encountered: