mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 18:26:49 +02:00
Detect failure to retrieve version info
This commit is contained in:
parent
f839f248b9
commit
8baae12ff6
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -5,7 +5,10 @@ DOCS_DIR := ./docs
|
|||
OUT_DIR := ./out
|
||||
TESTS_DIR := ./tests
|
||||
|
||||
VERSION := `git describe --tags`
|
||||
VERSION := $(shell git describe --tags)
|
||||
ifeq ($(VERSION),)
|
||||
_ := $(error Cannot determine build version)
|
||||
endif
|
||||
|
||||
SEMGREP_MODFILE := $(TESTS_DIR)/semgrep-rules/go.mod
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue