Detect failure to retrieve version info

This commit is contained in:
eikendev 2022-04-16 14:06:26 +02:00
parent f839f248b9
commit 8baae12ff6
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694

View file

@ -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