Add code to publish-all.sh for bumping path dependency versions. (#792)
In a multi-crate repo, path dependencies still need to specify versions when publishing on crates.io. This adds a very simple way to keep all these versions in sync.
This commit is contained in:
committed by
Alex Crichton
parent
336ee94c89
commit
068c249439
@@ -17,6 +17,13 @@ find -name Cargo.toml \
|
||||
-not -path ./crates/wasi-common/WASI/tools/witx/Cargo.toml \
|
||||
-exec sed -i.bk -e "s/^version = \"[[:digit:]].*/version = \"$version\"/" {} \;
|
||||
|
||||
# Update the required version numbers of path dependencies.
|
||||
find -name Cargo.toml \
|
||||
-not -path ./crates/wasi-common/wig/WASI/tools/witx/Cargo.toml \
|
||||
-exec sed -i.bk \
|
||||
-e "/\> *= *{.*\<path *= *\"/s/version = \"[^\"]*\"/version = \"$version\"/" \
|
||||
{} \;
|
||||
|
||||
# Update our local Cargo.lock (not checked in).
|
||||
cargo update
|
||||
scripts/test-all.sh
|
||||
|
||||
Reference in New Issue
Block a user