Update ldflags

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
This commit is contained in:
rodneyosodo
2023-07-27 12:05:00 +03:00
parent bd884cbcc4
commit 20962362b6
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ TIME ?= $(shell date +%F_%T)
define compile_service
CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) \
go build -mod=vendor -ldflags "-s -w \
-X 'github.com/ultravioletrs/cocos/internal/http.BuildTime=$(TIME)' \
-X 'github.com/ultravioletrs/cocos/internal/http.Version=$(VERSION)' \
-X 'github.com/ultravioletrs/cocos/internal/http.Commit=$(COMMIT)'" \
-X 'github.com/mainflux/mainflux.BuildTime=$(TIME)' \
-X 'github.com/mainflux/mainflux.Version=$(VERSION)' \
-X 'github.com/mainflux/mainflux.Commit=$(COMMIT)'" \
-o ${BUILD_DIR}/cocos-$(1) cmd/$(1)/main.go
endef
+1 -1
View File
@@ -41,7 +41,7 @@ func MakeHandler(svc agent.Service, instanceID string) http.Handler {
opts...,
), "run"))
r.GetFunc("/version", mainflux.Health("agent", instanceID))
r.GetFunc("/health", mainflux.Health("agent", instanceID))
r.Handle("/metrics", promhttp.Handler())
return r