From 05f95a5c75ce127205a1cbdd83085af29fb7ba43 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Sun, 26 Apr 2026 01:26:05 +0300 Subject: [PATCH] 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 --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a93ada0..9636a3c 100644 --- a/Makefile +++ b/Makefile @@ -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