Skip to content
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

Do an early check for unbuildable deps, and give good error. #4023

Merged
merged 1 commit into from
Oct 22, 2016

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Oct 22, 2016

When a library/executable is unbuildable, the solver may still
return a reference to it. Handle this gracefully in ProjectPlanning
with a nice error message, rather than an assert failure.

Fixes #3978.

Signed-off-by: Edward Z. Yang [email protected]

@mention-bot
Copy link

@ezyang, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dcoutts, @grayjay and @23Skidoo to be potential reviewers.

@ezyang ezyang force-pushed the pr/T3978 branch 2 times, most recently from 58d194e to e80207c Compare October 22, 2016 04:06
When a library/executable is unbuildable, the solver may still
return a reference to it.  Handle this gracefully in ProjectPlanning
with a nice error message, rather than an assert failure.

Fixes haskell#3978.

Signed-off-by: Edward Z. Yang <[email protected]>
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BardurArantsson BardurArantsson merged commit 325d363 into haskell:master Oct 22, 2016
@BardurArantsson
Copy link
Collaborator

BardurArantsson commented Oct 22, 2016

LGTM. Took the liberty of just merging.

@grayjay grayjay mentioned this pull request Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants