refactor: Update Go build commands to use explicit source paths and improve output formatting

- Change api-server build path from default to ./cmd/ directory
- Change carrier-connector build path from default to current directory
- Change CLI build path from default to current directory
- Update build-go echo color from CYAN to GREEN for consistency
- Remove redundant mkdir -p dist from build-go target
This commit is contained in:
nutcas3
2026-04-26 01:26:05 +03:00
parent 10ac6bb861
commit 05f95a5c75
+5 -6
View File
@@ -61,17 +61,16 @@ lint-rust: ## Run Rust linter (clippy)
@cargo clippy --workspace -- -D warnings
# Go - BSS API & Carrier Connector
build-go: ## Build Go services
@echo "$(CYAN)Building Go projects...$(RESET)"
@mkdir -p dist
@cd apps/api-server && go build -o ../../dist/api-server
@cd apps/carrier-connector && go build -o ../../dist/carrier-connector
build-go: ## Build Go applications
@echo "$(GREEN)Building Go applications...$(RESET)"
@cd apps/api-server && go build -o ../../dist/api-server ./cmd/
@cd apps/carrier-connector && go build -o ../../dist/carrier-connector .
@echo "$(GREEN)Go build complete!$(RESET)"
build-cli: ## Build CLI tool
@echo "$(CYAN)Building CLI...$(RESET)"
@mkdir -p dist
@cd apps/cli && go build -o ../../dist/taas-cli
@cd apps/cli && go build -o ../../dist/taas-cli .
@echo "$(GREEN)CLI build complete!$(RESET)"
test-go: ## Run Go tests