fix build atlas-api
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-18 11:41:04 +07:00
parent 746cf809df
commit def02bb36d

View File

@@ -600,13 +600,18 @@ build_binaries() {
echo "Building from: $(pwd)"
# Create cmd directory structure if it doesn't exist
mkdir -p ./cmd/atlas-api
mkdir -p ./cmd/atlas-tui
# Always update main.go files to ensure they're current
if [[ ! -f "./cmd/atlas-api/main.go" ]]; then
echo -e "${YELLOW}cmd/ directory not found, creating...${NC}"
mkdir -p ./cmd/atlas-api
mkdir -p ./cmd/atlas-tui
# Create atlas-api/main.go
cat > ./cmd/atlas-api/main.go <<'MAINGO'
else
echo " Updating cmd/atlas-api/main.go..."
fi
# Create/update atlas-api/main.go
cat > ./cmd/atlas-api/main.go <<'MAINGO'
package main
import (
@@ -749,6 +754,8 @@ func main() {
MAINGO
echo -e "${GREEN}Created cmd/ directory structure${NC}"
else
echo " Updating cmd/atlas-tui/main.go..."
fi
# Verify cmd files exist now