mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
chore(makefile): suppress git describe stderr in VERSION variable
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
|||||||
shell := /bin/sh
|
shell := /bin/sh
|
||||||
export VERSION ?= $(shell git describe --tags --abbrev=0)
|
export VERSION ?= $(shell git describe --tags --abbrev=0 2>/dev/null)
|
||||||
export BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
export BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
export BUILD_DATE ?= $(shell date -u +'%Y%m%d-%H%M')
|
export BUILD_DATE ?= $(shell date -u +'%Y%m%d-%H%M')
|
||||||
export GOOS = linux
|
export GOOS = linux
|
||||||
|
|||||||
Reference in New Issue
Block a user