Skip to content

Commit

Permalink
enable cosmos-sdk v0.52.x update mods
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed Sep 26, 2024
1 parent a0d40b0 commit 5b741a8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 16 deletions.
60 changes: 44 additions & 16 deletions .github/scripts/update-go-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,51 @@ for module in $modules; do
# Checking cosmos-sdk modules
case "$module" in
*cosmossdk.io*)
case "$module" in
# Force checking specific modules to HEAD of main instead of release
*core/testing*|*depinject*|*log*|*math*|*schema*)
if ! get_and_update_module "$cosmossdk_latest_commit_main"; then
echo "Failed to update module $module after trying main."
exit 1
fi
;;
*errors*|*api*|*core*)
echo "ignore $module"
;;
*)
if ! get_and_update_module "$cosmossdk_latest_commit_branch"; then
echo "Failed to update module $module after trying $COSMOSSDK_BRANCH."

if [[ "$COSMOSSDK_BRANCH" =~ "v0.50.x" ]]; then
case "$module" in
# Force checking specific modules to HEAD of main instead of release
*core/testing*|*depinject*|*log*|*math*|*schema*)
if ! get_and_update_module "$cosmossdk_latest_commit_main"; then
echo "Failed to update module $module after trying main."
exit 1
fi
;;
*errors*|*api*|*core*)
echo "ignore $module"
;;
*)
if ! get_and_update_module "$cosmossdk_latest_commit_branch"; then
echo "Failed to update module $module after trying $COSMOSSDK_BRANCH."
fi
;;
esac
elif [[ "$COSMOSSDK_BRANCH" =~ "v0.52.x" ]]; then
case "$module" in
# Force checking specific modules to HEAD of refs/heads/release/v0.52.x instead of main
*client/v2*|*x/*)
# Exception for x/tx
if [[ "$module" =~ "x/tx" ]]; then
if ! get_and_update_module "$cosmossdk_latest_commit_main"; then
echo "Failed to update module $module after trying main."
exit 1
fi
else
if ! get_and_update_module "$cosmossdk_latest_commit_branch"; then
echo "Failed to update module $module after trying $COSMOSSDK_BRANCH."
fi
fi
;;
esac
;;
*errors*)
echo "ignore $module"
;;
*)
if ! get_and_update_module "$cosmossdk_latest_commit_main"; then
echo "Failed to update module $module after trying main."
fi
;;
esac
fi
;;
*github.com/cosmos/cosmos-sdk*)

Expand Down
8 changes: 8 additions & 0 deletions apps/cosmos-sdk/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ channels:
enabled: false
cosmossdk_branch: refs/heads/release/v0.52.x
tests_enabled: true
- name: v0.52.x-mods
branch: refs/heads/release/v0.52.x
platforms: ["linux/amd64","linux/arm64"]
container_tag_name: "0.52"
update_modules:
enabled: true
cosmossdk_branch: refs/heads/release/v0.52.x
tests_enabled: true

0 comments on commit 5b741a8

Please sign in to comment.