Skip to content

Commit 4e70a3b

Browse files
Web3NLclaude
andcommitted
fix(ci): restore icp-cli version pin (ICP_CLI_VERSION=0.2.0)
Keep the pinned version as a safeguard alongside the network-launcher pin. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3147c6d commit 4e70a3b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

scripts/constants.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
export REPO_ROOT
66
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
77

8+
# 🔧 Pinned tool versions
9+
export ICP_CLI_VERSION="0.2.0"
10+
811
# 💰 Cycle amounts
912
export CANISTER_INITIAL_CYCLES="1000000000000"
1013

validate-and-test-all.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ set -euo pipefail
1616

1717
source "$(dirname "$0")/scripts/constants.sh"
1818

19+
# 🔧 Enforce pinned icp-cli version (same locally and in CI)
20+
CURRENT_ICP_VERSION=$(icp --version 2>/dev/null | awk '{print $2}' || echo "not installed")
21+
if [ "$CURRENT_ICP_VERSION" != "$ICP_CLI_VERSION" ]; then
22+
echo "📦 Installing icp-cli@${ICP_CLI_VERSION} (current: ${CURRENT_ICP_VERSION})..."
23+
npm install -g "@icp-sdk/icp-cli@${ICP_CLI_VERSION}"
24+
fi
25+
1926
# ⏱️ Per-step timing
2027
SCRIPT_START_TIME=$(date +%s)
2128
T_STATIC=0

0 commit comments

Comments
 (0)