chore: use short commit hash
This commit is contained in:
parent
7d95c88063
commit
84a79c5460
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ GO := go
|
|||||||
PKG_BASE := $(shell head -n 1 go.mod | awk '{print $$2}')
|
PKG_BASE := $(shell head -n 1 go.mod | awk '{print $$2}')
|
||||||
BUILD_TIME := $(shell date -u '+%Y%m%d-%I%M%S')
|
BUILD_TIME := $(shell date -u '+%Y%m%d-%I%M%S')
|
||||||
VERSION := $(shell cat VERSION)
|
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.BuildTime=$(BUILD_TIME)
|
||||||
LDFLAGS += -X $(PKG_BASE)/cmd.Version=$(VERSION)
|
LDFLAGS += -X $(PKG_BASE)/cmd.Version=$(VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user