diff --git a/ci/dependabot-updater.sh b/ci/dependabot-updater.sh index 98c95d1c4..3ee9ee4d3 100755 --- a/ci/dependabot-updater.sh +++ b/ci/dependabot-updater.sh @@ -12,8 +12,9 @@ parsed_update_args="$( )" package=$(echo "$parsed_update_args" | awk '{print $2}' | grep -o "^[^:]*") if [[ -n $parsed_update_args ]]; then + # find other Cargo.lock files and update them, excluding the default Cargo.lock # shellcheck disable=SC2086 - for lock in $(git grep --files-with-matches --fixed-strings "$package" :**/Cargo.lock); do + for lock in $(git grep --files-with-matches '^name = "'$package'"$' :**/Cargo.lock); do _ scripts/cargo-for-all-lock-files.sh \ "$lock" -- \ update $parsed_update_args