|
|
@@ -129,7 +129,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
|
|
|
# Set new crate version
|
|
|
(
|
|
|
set -x
|
|
|
- sed -i "$Cargo_toml" -e "0,/^version =/{s/^version = \"[^\"]*\"$/version = \"$newVersion\"/}"
|
|
|
+ sed -i "$Cargo_toml" -e "s/^version = \"$currentVersion\"$/version = \"$newVersion\"/"
|
|
|
)
|
|
|
|
|
|
# Fix up the version references to other internal crates
|
|
|
@@ -183,7 +183,7 @@ scripts/cargo-for-all-lock-files.sh tree >/dev/null
|
|
|
done
|
|
|
mv "$tmp_file" filtered-cargo-lock-patch
|
|
|
|
|
|
- git checkout ./**/Cargo.lock
|
|
|
+ git ls-files -- **/Cargo.lock | xargs -I {} git checkout {}
|
|
|
git apply --unidiff-zero filtered-cargo-lock-patch
|
|
|
rm cargo-lock-patch filtered-cargo-lock-patch
|
|
|
)
|