Skip to content

Commit

Permalink
cargo: Support workspace build-dependencies
Browse files Browse the repository at this point in the history
It behaves the same as dev-dependencies.
  • Loading branch information
zecakeh authored and hfiguiere committed Apr 6, 2024
1 parent 3fe8b14 commit bb7d86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo/flatpak-cargo-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def update_workspace_keys(pkg, workspace):
for target in item.values():
update_workspace_keys(target, workspace)
continue;
# dev-dependencies should reference root dependencies table from workspace
elif key == 'dev-dependencies':
# dev-dependencies and build-dependencies should reference root dependencies table from workspace
elif key == 'dev-dependencies' or key == 'build-dependencies':
update_workspace_keys(item, workspace.get('dependencies', None))
continue;

Expand Down

0 comments on commit bb7d86b

Please sign in to comment.