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

Fix dependency graph resolver #34

Merged
merged 1 commit into from
May 5, 2024
Merged

Fix dependency graph resolver #34

merged 1 commit into from
May 5, 2024

Conversation

dannymcgee
Copy link
Contributor

This update makes several changes to the dependency graph resolver plugin which hopefully fixes any outstanding issues with it:

  1. Create proper types for the output of cargo metadata (gleaned from poking around the output)
  2. Use the resolve field of the metadata object to map workspace packages to their dependencies
  3. Avoid adding non-workspace-local packages to the dependency graph

There's probably more room for improvement here, especially in regards to performance (currently we're rebuilding the graph from scratch every time), but hopefully this is adequate for now.

@dannymcgee dannymcgee merged commit 53943ba into main May 5, 2024
@dannymcgee dannymcgee deleted the fix-graph-plugin branch May 5, 2024 23:34
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.

1 participant