more fixes
Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / E2E Tests (push) Blocked by required conditions

This commit is contained in:
Enki 2025-08-27 13:41:09 -07:00
parent e647aea2cb
commit 66162fdb1a

View File

@ -185,14 +185,29 @@ echo "✅ Go $GO_VERSION installed"
if [ "$SKIP_BUILD" = false ]; then if [ "$SKIP_BUILD" = false ]; then
echo "🔨 Building Torrent Gateway..." echo "🔨 Building Torrent Gateway..."
# Debug: Show environment and current directory
echo "DEBUG: Current working directory: $(pwd)"
echo "DEBUG: GOPATH: ${GOPATH:-'not set'}"
echo "DEBUG: GOROOT: ${GOROOT:-'not set'}"
echo "DEBUG: Contents of current directory:"
ls -la | head -10
echo "DEBUG: Check if cmd/gateway exists:"
if [ -d "cmd/gateway" ]; then
echo " ✅ cmd/gateway directory exists"
ls -la cmd/gateway/
else
echo " ❌ cmd/gateway directory does NOT exist"
fi
# Install Go dependencies # Install Go dependencies
go mod download go mod download
# Create bin directory if it doesn't exist # Create bin directory if it doesn't exist
mkdir -p bin mkdir -p bin
# Build binary # Build binary with verbose output
go build -o bin/gateway \ echo "DEBUG: Running go build command..."
go build -v -o bin/gateway \
-ldflags "-X main.version=$(git describe --tags --always 2>/dev/null || echo 'dev') -X main.buildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ) -s -w" \ -ldflags "-X main.version=$(git describe --tags --always 2>/dev/null || echo 'dev') -X main.buildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ) -s -w" \
./cmd/gateway ./cmd/gateway