#12 RFE: support generating BuildRequires for non-workspace path dependencies
Closed by decathorpe. Opened by decathorpe.

Some projects use path-based dependencies, but do not actually set up a workspace that contains those paths / sub-crates. This is currently not supported by %cargo_generate_buildrequires, because it does not recursively resolve dependencies for path-based dependencies, and instead relies on metadata from cargo metadata - but this metadata does not contain information about path-based dependencies if they are not also listed as workspace members.


Note that implementing this would require distinguishing between path-based dependencies on crates that are workspace members and path-based dependencies on crates that are not workspace members.

Given that this "issue" was only ever encountered once (because the project didn't have a [workspace] set up), I'm going to say this is an edge case that is easier to fix by adding the missing workspace definition than by adding potentially a lot of code in cargo2rpm.

Metadata Update from @decathorpe:
- Issue status updated to: Closed (was: Open)

Log in to comment on this ticket.

Metadata