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

Union cargo package dependencies #861

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Conversation

James-Mart
Copy link
Member

This allows package dependencies to be specified in any crate in a cargo-package instead of only the service crate.
Dependencies put in multiple crates will be unioned for inclusion in the final package.

This PR also moves the dependencies for the ChainMail package from the service crate to the root crate. It does not demonstrate unioning capabilities which were manually tested.


Merge to main once #859 is merged.

@James-Mart James-Mart added the Dev Experience Related to the experience of developers label Sep 24, 2024
Base automatically changed from default-deploy-chainmail to main September 26, 2024 15:52
@James-Mart James-Mart requested review from swatanabe and removed request for swatanabe September 26, 2024 18:36
@James-Mart James-Mart marked this pull request as ready for review September 26, 2024 18:42
@@ -205,7 +205,7 @@ pub async fn build_package(
metadata: &MetadataIndex<'_>,
service: Option<&str>,
) -> Result<PackageInfo, anyhow::Error> {
let mut depends = vec![];
let mut depends_set = HashSet::new();
Copy link
Collaborator

Choose a reason for hiding this comment

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

The elements are already being sorted. Adding a dedup at that point is probably more efficient.

@James-Mart James-Mart merged commit 97a3077 into main Sep 30, 2024
4 checks passed
@James-Mart James-Mart deleted the union-cargo-package-dependencies branch September 30, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Experience Related to the experience of developers
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants