Skip to content

Commit 7ee6ba1

Browse files
grandizzyMerkleBoy
authored andcommitted
fix(forge): update only the specific dep (foundry-rs#11588)
1 parent 1420bf6 commit 7ee6ba1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/forge/src/cmd/update.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ impl UpdateArgs {
151151
// checkout the submodules at the correct tags
152152
// Skip branches that were already updated above to avoid reverting to local branch
153153
for (path, dep_id) in foundry_lock.iter() {
154+
// Ignore other dependencies if single update.
155+
if !dep_overrides.is_empty() && !dep_overrides.contains_key(path) {
156+
continue;
157+
}
158+
154159
// Skip branches that were already updated
155160
if dep_id.is_branch() && dep_id.overridden() {
156161
continue;

0 commit comments

Comments
 (0)