Fix: Detect changes in workspace dependencies #193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously,
cargo-workspaces
would not detect changes to packages if only a[workspace.dependencies]
entry they used was modified in the rootCargo.toml
. This was because change detection was solely based on files modified within the package's own directory.This commit modifies the
get_changed_pkgs
function to:Cargo.toml
has been modified.Cargo.toml
.[workspace.dependencies]
have been added, removed, or had their versions changed.Cargo.toml
files, and determine if they use any of the workspace dependencies that were identified as changed.This ensures that packages are correctly identified as changed when their effective dependencies are altered via the
[workspace.dependencies]
table, addressing issue #173.