scripts: clear existing wrappers when running raze
By removing cargo/remote/* before running raze, ensure that the contents
of that directory don't hold onto old versions.
@@ -4,5 +4,8 @@ readonly SCRIPTS_DIR="$(dirname "$0")"
# shellcheck source=scripts/common
source "$SCRIPTS_DIR/common"
-cd cargo
+cd cargo || exit 1
+# Remove existing raze-generated BUILD files before regenerating, so
+# the files for removed/upgraded deps get cleared.
+rm -f remote/*
cargo raze
