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

This commit is contained in:
Michael Vines
2019-04-16 15:12:10 -07:00
committed by GitHub
parent 34344982a9
commit bee411e826

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