mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 11:54:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user