From 068c24943909a8a5f257755e82a13c9555d613ca Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 10 Jan 2020 07:34:49 -0800 Subject: [PATCH] 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. --- scripts/publish-all.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/publish-all.sh b/scripts/publish-all.sh index af472c6607..b5ef28c216 100755 --- a/scripts/publish-all.sh +++ b/scripts/publish-all.sh @@ -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 "/\> *= *{.*\