Skip to content

Handle workspace dependencies#35

Draft
joao-paulo-parity wants to merge 2 commits intoparitytech:masterfrom
joao-paulo-parity:workspace
Draft

Handle workspace dependencies#35
joao-paulo-parity wants to merge 2 commits intoparitytech:masterfrom
joao-paulo-parity:workspace

Conversation

@joao-paulo-parity
Copy link

Problem

Per https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace

Other than optional and features, inherited dependencies cannot use any other dependency key (such as version or default-features).

diener doesn't take into account workspace dependencies, thus it would fail to effectively patch them and leave the code in a broken state.

Solution

Remove .workspace from entries before patching them.

Later on a flag --workspace-dependencies=[patch|skip] can be added to configure this behavior.

> Other than optional and features, inherited dependencies cannot use
any other dependency key (such as version or default-features).

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

We should patch them in the workspace dependencies table and skip these dependencies down in the tree.

@joao-paulo-parity
Copy link
Author

We should patch them in the workspace dependencies table and skip these dependencies down in the tree.

Ok. Then this change needs a rework. Moving to Draft.

@joao-paulo-parity joao-paulo-parity marked this pull request as draft January 10, 2023 15:16
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