Preserve extra dependency annotations (optional=,features=) during version bump (#3810)
This commit is contained in:
parent
34344982a9
commit
bee411e826
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue