Skip to content

Fix bug in link validation - #3237

Closed
edsko wants to merge 2 commits into
haskell:masterfrom
edsko:pr/fix2842
Closed

edsko wants to merge 2 commits into
haskell:masterfrom
edsko:pr/fix2842

Conversation

@edsko

@edsko edsko commented Mar 20, 2016

Copy link
Copy Markdown
Contributor

When we are choosing to link a package (pickLink), it is possible that that package was already linked (because its reverse dependencies got linked). Thus, this requires a merge of link groups: it is not correct to simply add the package into the target link group.

This fixes #2842. Thank you @GrayJay for yet another very high quality bug report! All this independent goals/linking is all very new so it's really great to have somebody like you taking such a detailed look at it. Much appreciated!

Pinging @kosmikus and @dcoutts .

sebright and others added 2 commits March 19, 2016 15:45
When we are choosing to link a package (`pickLink`), it is possible that that
package was _already_ linked (because its reverse dependencies got linked).
Thus, this requires a merge of link groups: it is not correct to simply add the
package into the target link group.

This fixes #2842.
@sebright

Copy link
Copy Markdown
Collaborator

@edsko Thanks!

I found this and #2834 while testing my changes with quickcheck. I wanted to clean up the tests and contribute them, but they are really slow. Would solver quickcheck tests be useful, even if they are too slow to run on Travis?

@23Skidoo

Copy link
Copy Markdown
Member

@GrayJay I think that having them in the repo (even if they were disabled by default) could be useful.

@edsko

edsko commented Mar 21, 2016

Copy link
Copy Markdown
Contributor Author

Yup, I agree with @23Skidoo . That would definitely be a good thing to have!

@sebright

Copy link
Copy Markdown
Collaborator

Great! I'll work on a PR.

@dcoutts

dcoutts commented Mar 28, 2016

Copy link
Copy Markdown
Contributor

I've merged these patches to the nix-local-build branch (along with all the other recent solver PRs).

@sebright

Copy link
Copy Markdown
Collaborator

I opened a PR for the quickcheck tests: #3245

@ezyang

ezyang commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

@23Skidoo Would you like me to merge these PRs?

@23Skidoo

23Skidoo commented Apr 1, 2016

Copy link
Copy Markdown
Member

@ezyang If @kosmikus doesn't/won't object, then sure.

@ezyang

ezyang commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

Oh, @kosmikus has said that he will try to review before the release date; I'll hold off then.

@edsko

edsko commented Apr 23, 2016

Copy link
Copy Markdown
Contributor Author

This has been merged into and subsumed by #3357 .

@edsko edsko closed this Apr 23, 2016
@edsko
edsko deleted the pr/fix2842 branch April 23, 2016 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--independent-goals can produce an invalid install plan

6 participants