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

refactor(dap): hide the implementation of dynamic dependencies #8006

Conversation

rgrinberg
Copy link
Member

The representation of dynamic dependencies as they're implemented by DAP
is an implementation detail that the engine shouldn't be concerned with.

Instead, we reuse the standard representation of dependencies.

Signed-off-by: Rudi Grinberg [email protected]

@rgrinberg rgrinberg requested a review from snowleopard June 18, 2023 13:58
Copy link
Collaborator

@snowleopard snowleopard left a comment

Choose a reason for hiding this comment

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

I'm not sure it's actually an improvement. You are hiding some details, sure, but also make the types less precise. Also, as we discussed, I'm currently doing a lot of changes around dependency representation and would prefer to avoid touching this code for now.

@rgrinberg
Copy link
Member Author

We can wait, but I think this change can only help your refactoring. You have one less dependency type to worry about with this change.

Copy link
Collaborator

@snowleopard snowleopard left a comment

Choose a reason for hiding this comment

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

Thanks for clearing up the motivation and my confusion about preserving the structure! The change now looks pretty uncontroversial to me. Still confused about one of the deleted comments but that's probably not important.

@rgrinberg
Copy link
Member Author

Still confused about one of the deleted comments but that's probably not important.

This was cleared up in src/dune_engine/action_exec.mli in case anyone else is reading.

The representation of dynamic dependencies as they're implemented by DAP
is an implementation detail that the engine shouldn't be concerned with.

Instead, we reuse the standard representation of dependencies.

Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: 7ca7a61a-8237-4043-b716-a937b4073c22 -->
@rgrinberg rgrinberg force-pushed the ps/rr/refactor_dap___hide_the_implementation_of_dynamic_dependencies branch from 64bcd29 to cfb7c76 Compare June 20, 2023 20:33
@rgrinberg rgrinberg merged commit 5c047d4 into main Jun 20, 2023
@rgrinberg rgrinberg deleted the ps/rr/refactor_dap___hide_the_implementation_of_dynamic_dependencies branch June 20, 2023 20:35
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.

2 participants