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

Improve library redirect behavior #3790

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

rgrinberg
Copy link
Member

Previously, we'd add redirect for private libraries only if the
underlying libraries were filtered out. It's simpler, to just always add
a redirect and rmeove the additional logic for redirects when
constructing a library database.

@rgrinberg rgrinberg requested a review from a user September 15, 2020 02:32
@rgrinberg
Copy link
Member Author

This is a follow up to #3729

Copy link
Collaborator

@nojb nojb left a comment

Choose a reason for hiding this comment

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

LGTM

To make sure I understand, this is a general simplification that does not actually address the issues in #3729, right?

@rgrinberg
Copy link
Member Author

Yes, this PR does not address #3729 because that issue has already been fully resolved. It's just that I later realized I can maintain all the redirection mechanisms in a single place. Previously, it was split across Scope and Dune_file.

@nojb
Copy link
Collaborator

nojb commented Sep 23, 2020

Yes, this PR does not address #3729 because that issue has already been fully resolved. It's just that I later realized I can maintain all the redirection mechanisms in a single place. Previously, it was split across Scope and Dune_file.

Apologies I meant #3810, but I was confused, I see that this PR is not related to that one.

@rgrinberg
Copy link
Member Author

rgrinberg commented Sep 23, 2020 via email

src/dune_rules/gen_rules.ml Outdated Show resolved Hide resolved
Previously, we'd add redirect for private libraries only if the
underlying libraries were filtered out. It's simpler, to just always add
a redirect and rmeove the additional logic for redirects when
constructing a library database.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg rgrinberg merged commit f033f4e into ocaml:master Sep 23, 2020
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.

3 participants