From dfd02d617953303cad98284f4e091d5d88241ec5 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 24 Aug 2020 08:25:34 +0000 Subject: [PATCH] Bump to v0.2.7 (#1561) ## Issue Addressed NA ## Proposed Changes - Update to v0.2.7 - Add script to make update easy. ## Additional Info NA --- account_manager/Cargo.toml | 2 +- beacon_node/Cargo.toml | 2 +- boot_node/Cargo.toml | 2 +- common/lighthouse_version/src/lib.rs | 2 +- lcli/Cargo.toml | 2 +- lighthouse/Cargo.toml | 2 +- scripts/change_version.sh | 32 ++++++++++++++++++++++++++++ validator_client/Cargo.toml | 2 +- 8 files changed, 39 insertions(+), 7 deletions(-) create mode 100755 scripts/change_version.sh diff --git a/account_manager/Cargo.toml b/account_manager/Cargo.toml index dec7740aa..87b21d266 100644 --- a/account_manager/Cargo.toml +++ b/account_manager/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "account_manager" -version = "0.2.6" +version = "0.2.7" authors = ["Paul Hauner ", "Luke Anderson "] edition = "2018" diff --git a/beacon_node/Cargo.toml b/beacon_node/Cargo.toml index ebb502850..59c7cbb6e 100644 --- a/beacon_node/Cargo.toml +++ b/beacon_node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "beacon_node" -version = "0.2.6" +version = "0.2.7" authors = ["Paul Hauner ", "Age Manning "] edition = "2018" diff --git a/common/lighthouse_version/src/lib.rs b/common/lighthouse_version/src/lib.rs index 08696527c..959c4c908 100644 --- a/common/lighthouse_version/src/lib.rs +++ b/common/lighthouse_version/src/lib.rs @@ -10,7 +10,7 @@ use target_info::Target; /// `Lighthouse/v0.2.0-1419501f2+` pub const VERSION: &str = git_version!( args = ["--always", "--dirty=+"], - prefix = "Lighthouse/v0.2.6-", + prefix = "Lighthouse/v0.2.7-", fallback = "unknown" ); diff --git a/lcli/Cargo.toml b/lcli/Cargo.toml index 6f19d14e8..343fcb1b2 100644 --- a/lcli/Cargo.toml +++ b/lcli/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lcli" description = "Lighthouse CLI (modeled after zcli)" -version = "0.2.6" +version = "0.2.7" authors = ["Paul Hauner "] edition = "2018" diff --git a/lighthouse/Cargo.toml b/lighthouse/Cargo.toml index 675d98fef..f8790e763 100644 --- a/lighthouse/Cargo.toml +++ b/lighthouse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lighthouse" -version = "0.2.6" +version = "0.2.7" authors = ["Sigma Prime "] edition = "2018" diff --git a/scripts/change_version.sh b/scripts/change_version.sh new file mode 100755 index 000000000..390e9c122 --- /dev/null +++ b/scripts/change_version.sh @@ -0,0 +1,32 @@ +# Change the version across multiple files, prior to a release. Use `sed` to +# find/replace the exiting version with the new one. +# +# Takes two arguments: +# +# 1. Current version (e.g., `0.2.6`) +# 2. New version (e.g., `0.2.7`) +# +# ## Example: +# +# `./change_version.sh 0.2.6 0.2.7` + +FROM=$1 +TO=$2 +VERSION_CRATE="../common/lighthouse_version/src/lib.rs" + +update_cargo_toml () { + echo $1 + sed -i -e "s/version = \"$FROM\"/version = \"$TO\"/g" $1 +} + +echo "Changing version from $FROM to $TO" + +update_cargo_toml ../account_manager/Cargo.toml +update_cargo_toml ../beacon_node/Cargo.toml +update_cargo_toml ../boot_node/Cargo.toml +update_cargo_toml ../lcli/Cargo.toml +update_cargo_toml ../lighthouse/Cargo.toml +update_cargo_toml ../validator_client/Cargo.toml + +echo $VERSION_CRATE +sed -i -e "s/$FROM/$TO/g" $VERSION_CRATE diff --git a/validator_client/Cargo.toml b/validator_client/Cargo.toml index 8a1a36ddb..05e682ab3 100644 --- a/validator_client/Cargo.toml +++ b/validator_client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "validator_client" -version = "0.2.6" +version = "0.2.7" authors = ["Paul Hauner ", "Age Manning ", "Luke Anderson "] edition = "2018"