more fixes
This commit is contained in:
parent
e647aea2cb
commit
66162fdb1a
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user