mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- 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
26 lines
702 B
Bash
Executable File
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."
|