Skip to content

Commit f8f63c4

Browse files
authored
added go.sum check in Makefile (#4)
1 parent 75c36c3 commit f8f63c4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ help: ## Display this help screen
1818
@grep -h -E '^[a-zA-Z0-9_/-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-28s\033[0m %s\n", $$1, $$2}'
1919

2020
# SDK/library compile check (Go libs are compiled as part of go build; no artifact)
21-
sdk: ## Compile all packages in the module (verifies SDK builds)
21+
sdk: go.sum ## Compile all packages in the module (verifies SDK builds)
2222
@echo "Compiling SDK (library packages)..."
2323
@$(GO) build ./...
2424
@echo "SDK build completed successfully."
2525

2626
# Alias for backward compatibility
2727
build: sdk ## Alias for sdk
2828

29+
go.sum: go.mod
30+
@echo "Verifying and tidying go modules..."
31+
@$(GO) mod verify
32+
@$(GO) mod tidy
33+
@touch go.sum
34+
2935
# Examples to build (main packages under ./examples)
3036
examples: $(EXAMPLES:%=example-%) ## Build all example binaries into ./build
3137
@echo "Examples built into $(BUILD_DIR)/"

0 commit comments

Comments
 (0)