Files
evm/ci_setup.sh
zeekay ed8e284175 Fix shellcheck warnings in shell scripts
- Fix SC2125: Quote GOPRIVATE/GONOSUMDB values in ci_setup.sh
- Fix SC1091: Add source=/dev/null for dynamically sourced lib_luxd_clone.sh
- Fix unbound variable errors in shellcheck.sh for arrays and args
- Add -x flag to shellcheck for following sourced files
2025-12-04 14:04:20 -08:00

26 lines
702 B
Bash
Executable File

#!/bin/bash
set -e
echo "Setting up CI environment..."
# Display Go version
echo "Go version:"
go version
# Configure GOPRIVATE for all luxfi packages
# shellcheck disable=SC2125 # The asterisk is intentional Go module syntax, not a glob
export GOPRIVATE='github.com/luxfi/*'
export GONOSUMDB='github.com/luxfi/*'
# Configure git to use GITHUB_TOKEN for authentication
if [ -n "$GITHUB_TOKEN" ]; then
echo "Configuring git credentials..."
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
fi
# Download dependencies from published packages
echo "Downloading dependencies..."
go mod download
echo "CI environment setup complete."