Skip to content

Deduplicate build targets by storing them in a set. - #3779

Merged
BardurArantsson merged 3 commits into
haskell:masterfrom
sebright:deduplicate-targets
Sep 6, 2016
Merged

BardurArantsson merged 3 commits into
haskell:masterfrom
sebright:deduplicate-targets

Conversation

@sebright

@sebright sebright commented Sep 5, 2016

Copy link
Copy Markdown
Collaborator

The solver can handle duplicate targets by linking them together, but the log
is more complex, and the result is the same as if the targets were deduplicated
beforehand.

Duplicate targets can occur in a sandbox (issue #3203).

@mention-bot

Copy link
Copy Markdown

@GrayJay, thanks for your PR! By analyzing the annotation information on this pull request, we identified @dcoutts, @tibbe and @ezyang to be potential reviewers

The solver can handle duplicate targets by linking them together, but the log
is more complex, and the result is the same as if the targets were deduplicated
beforehand.

Duplicate targets can occur in a sandbox (issue haskell#3203).
@sebright
sebright force-pushed the deduplicate-targets branch from c2ba6c5 to f7533c3 Compare September 5, 2016 04:33
@ezyang

ezyang commented Sep 5, 2016

Copy link
Copy Markdown
Contributor

LGTM. Is there an easy test we can add?

@sebright

sebright commented Sep 5, 2016

Copy link
Copy Markdown
Collaborator Author

Thanks. I'll add a unit test that checks that each target only appears once in the solver log.

@ezyang

ezyang commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

Merge when green.

@sebright

sebright commented Sep 6, 2016

Copy link
Copy Markdown
Collaborator Author

Thanks!

@BardurArantsson
BardurArantsson merged commit 70098ef into haskell:master Sep 6, 2016
@sebright
sebright deleted the deduplicate-targets branch September 7, 2016 05:06
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.

4 participants