From 66162fdb1af7b730e92b681e05efc1ef5a687637 Mon Sep 17 00:00:00 2001 From: enki Date: Wed, 27 Aug 2025 13:41:09 -0700 Subject: [PATCH] more fixes --- scripts/install_native.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/install_native.sh b/scripts/install_native.sh index 9f89a51..77cb995 100755 --- a/scripts/install_native.sh +++ b/scripts/install_native.sh @@ -185,14 +185,29 @@ echo "✅ Go $GO_VERSION installed" if [ "$SKIP_BUILD" = false ]; then 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 go mod download # Create bin directory if it doesn't exist mkdir -p bin - # Build binary - go build -o bin/gateway \ + # Build binary with verbose output + 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" \ ./cmd/gateway