Conditionally set PB_BUILD_VERSION

This commit is contained in:
eikendev 2022-04-18 12:44:39 +02:00
parent 4ea13f71de
commit da9070bc7d
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694

View file

@ -5,11 +5,9 @@ DOCS_DIR := ./docs
OUT_DIR := ./out
TESTS_DIR := ./tests
PB_BUILD_VERSION ?= $(shell git describe --tags)
ifeq ($(PB_BUILD_VERSION),)
PB_BUILD_VERSION := $(shell git describe --tags)
endif
ifeq ($(PB_BUILD_VERSION),)
$(error Cannot determine build version)
_ := $(error Cannot determine build version)
endif
SEMGREP_MODFILE := $(TESTS_DIR)/semgrep-rules/go.mod