fix: Build all Go files in cmd directories, not just main.go

This fixes the issue where fetch_raw_evidence.go wasn't being included
in the attestation-service build.
This commit is contained in:
Sammy Oina
2026-01-22 16:57:12 +03:00
parent 047d73f077
commit 0ec921d515
+1 -1
View File
@@ -21,7 +21,7 @@ define compile_service
-X 'github.com/absmach/supermq.Version=$(VERSION)' \
-X 'github.com/absmach/supermq.Commit=$(COMMIT)'" \
$(if $(filter 1,$(EMBED_ENABLED)),-tags "embed",) \
-o ${BUILD_DIR}/cocos-$(1) cmd/$(1)/main.go
-o ${BUILD_DIR}/cocos-$(1) ./cmd/$(1)
endef
.PHONY: all $(SERVICES) $(ATTESTATION_POLICY) install clean