chore(makefile): suppress git describe stderr in VERSION variable

This commit is contained in:
yusing
2026-02-15 20:06:16 +08:00
parent f8bc8dddb6
commit a8f4b8afee

View File

@@ -1,5 +1,5 @@
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 BUILD_DATE ?= $(shell date -u +'%Y%m%d-%H%M')
export GOOS = linux