Fix CI: Use ava-labs/avalanchego for release downloads

- luxfi/node doesn't have releases, use ava-labs/avalanchego
- Strip leading 'v' from LUX_VERSION to avoid double 'v'
- Update all download URLs and git clone to use correct repo
- Successfully tested locally - downloads and installs correctly
- This should finally fix all e2e test Install Lux Release failures
This commit is contained in:
2025-09-20 07:37:25 +00:00
parent 12f93208cb
commit 0de99a14f0
+8 -7
View File
@@ -12,11 +12,12 @@ EVM_PATH=$(
source "$EVM_PATH"/scripts/constants.sh
# Set LUXD_VERSION from LUX_VERSION if not already set
LUXD_VERSION=${LUXD_VERSION:-${LUX_VERSION}}
# Remove leading 'v' if present to avoid double 'v' in URLs
LUXD_VERSION=${LUXD_VERSION:-${LUX_VERSION#v}}
############################
# download luxd
# https://github.com/luxfi/node/releases
# download luxd/avalanchego
# https://github.com/ava-labs/avalanchego/releases
GOARCH=$(go env GOARCH)
GOOS=$(go env GOOS)
BASEDIR=${BASEDIR:-"/tmp/luxd-release"}
@@ -49,12 +50,12 @@ fi
# For now, we'll build from source if the binary isn't available
echo "Checking for pre-built binary..."
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-linux-${GOARCH}-v${LUXD_VERSION}.tar.gz"
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-linux-${GOARCH}-v${LUXD_VERSION}.tar.gz"
if [[ "$GOOS" == "darwin" ]]; then
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-macos-v${LUXD_VERSION}.zip"
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-macos-v${LUXD_VERSION}.zip"
elif [[ "$GOOS" == "windows" ]]; then
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-windows-${GOARCH}-v${LUXD_VERSION}.zip"
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-windows-${GOARCH}-v${LUXD_VERSION}.zip"
fi
echo "Attempting to download from: $DOWNLOAD_URL"
@@ -91,7 +92,7 @@ if command -v curl &> /dev/null; then
echo "Building from source..."
TEMP_DIR="${BASEDIR}/build_tmp"
rm -rf "$TEMP_DIR"
git clone --depth 1 --branch "v${LUXD_VERSION}" https://github.com/luxfi/node.git "$TEMP_DIR"
git clone --depth 1 --branch "v${LUXD_VERSION}" https://github.com/ava-labs/avalanchego.git "$TEMP_DIR"
cd "$TEMP_DIR"
./scripts/build.sh