Preserve extra dependency annotations (optional=,features=) during version bump (#3811)

This commit is contained in:
Michael Vines
2019-04-16 15:12:03 -07:00
committed by GitHub
parent 3c49d48666
commit 49ad5e0b69

View File

@ -89,7 +89,7 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
( (
set -x set -x
sed -i "$Cargo_toml" -e " sed -i "$Cargo_toml" -e "
s/^$crate = .*path = \"\([^\"]*\)\".*\$/$crate = \{ path = \"\1\", version = \"$newVersion\" \}/ s/^$crate = { *path *= *\"\([^\"]*\)\" *, *version *= *\"[^\"]*\"\(.*\)} *\$/$crate = \{ path = \"\1\", version = \"$newVersion\"\2 \}/
" "
) )
done done