diff --git a/Makefile b/Makefile index 02d0810..290b653 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GO := go PKG_BASE := $(shell head -n 1 go.mod | awk '{print $$2}') BUILD_TIME := $(shell date -u '+%Y%m%d-%I%M%S') VERSION := $(shell cat VERSION) -GIT_COMMIT := $(shell git rev-parse HEAD) +GIT_COMMIT := $(shell git rev-parse --short HEAD) LDFLAGS += -X $(PKG_BASE)/cmd.BuildTime=$(BUILD_TIME) LDFLAGS += -X $(PKG_BASE)/cmd.Version=$(VERSION)