Skip to content

Commit

Permalink
fix: retract v0.28.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian committed Nov 16, 2023
1 parent 01363ef commit 8cd6d46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ require (
)

retract (
v0.28.0
v0.26.0
v0.22.1
)
Expand Down
3 changes: 2 additions & 1 deletion make/test-upgrade.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export AKASH_LOG_COLOR = true

KEY_OPTS := --keyring-backend=$(AKASH_KEYRING_BACKEND)
KEY_NAME ?= validator
UPGRADE_TO ?= $(shell $(ROOT_DIR)/script/upgrades.sh test-required $(RELEASE_TAG))
#UPGRADE_TO ?= $(shell $(ROOT_DIR)/script/upgrades.sh test-required $(RELEASE_TAG))
UPGRADE_TO ?= $(shell $(ROOT_DIR)/script/upgrades.sh upgrade-from-release $(RELEASE_TAG))
# v0.28.0
UPGRADE_FROM := $(shell cat $(ROOT_DIR)/meta.json | jq -r --arg name $(UPGRADE_TO) '.upgrades[$$name].from_version' | tr -d '\n')
GENESIS_BINARY_VERSION := $(shell cat $(ROOT_DIR)/meta.json | jq -r --arg name $(UPGRADE_TO) '.upgrades[$$name].from_binary' | tr -d '\n')
Expand Down
11 changes: 11 additions & 0 deletions script/upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,17 @@ init)
clean)
shift
clean
;;
upgrade-from-release)
shift
upgrades_dir=${ROOT_DIR}/upgrades/software
upgrade_name=$(find "${upgrades_dir}" -mindepth 1 -maxdepth 1 -type d | awk -F/ '{print $NF}' | sort -r | head -n 1)

# shellcheck disable=SC2086
$semver validate $upgrade_name
echo -e "$upgrade_name"
exit 0

;;
test-required)
shift
Expand Down

0 comments on commit 8cd6d46

Please sign in to comment.