mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Use short git hash to be consistent with github
This commit is contained in:
2
Makefile
2
Makefile
@@ -5,7 +5,7 @@ endif
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
$(eval DATE := $(shell go run scripts/getDate.go))
|
$(eval DATE := $(shell go run scripts/getDate.go))
|
||||||
$(eval GITHASH := $(shell git rev-parse HEAD))
|
$(eval GITHASH := $(shell git rev-parse --short HEAD))
|
||||||
$(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)'"
|
$(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)'"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|||||||
Reference in New Issue
Block a user