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,12 +600,17 @@ build_binaries() {
echo "Building from: $(pwd)" echo "Building from: $(pwd)"
# Create cmd directory structure if it doesn't exist # Create cmd directory structure if it doesn't exist
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-api
mkdir -p ./cmd/atlas-tui mkdir -p ./cmd/atlas-tui
# Create atlas-api/main.go # 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}"
else
echo " Updating cmd/atlas-api/main.go..."
fi
# Create/update atlas-api/main.go
cat > ./cmd/atlas-api/main.go <<'MAINGO' cat > ./cmd/atlas-api/main.go <<'MAINGO'
package main package main
@@ -749,6 +754,8 @@ func main() {
MAINGO MAINGO
echo -e "${GREEN}Created cmd/ directory structure${NC}" echo -e "${GREEN}Created cmd/ directory structure${NC}"
else
echo " Updating cmd/atlas-tui/main.go..."
fi fi
# Verify cmd files exist now # Verify cmd files exist now