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

Deduplicate uses of the same package across dependencies #15407

Merged
merged 2 commits into from
May 21, 2023

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented Apr 22, 2023

Very basic implementation. One key thing that this should probably be made to do at some point is validate that every argument passed to the build function which is used, has the same value on future calls to dependency.

@andrewrk
Copy link
Member

Alright this is definitely going to need to be changed to account for a more complex dependency tree, but I think this is a step in the right direction, and unblocks some use cases along the way. Thanks.

@andrewrk andrewrk merged commit b7cb883 into ziglang:master May 21, 2023
10 checks passed
@mlugg mlugg deleted the feat/pkg-dedup branch May 21, 2023 13:43
@mlugg
Copy link
Member Author

mlugg commented May 21, 2023

Agreed, there's for sure more that needs to be done regarding e.g. different versions of the same package, but as you say this is a helpful first step which unblocks some use cases :)

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.

None yet

2 participants