mirror of
https://github.com/pushbits/server.git
synced 2025-06-15 17:12:04 +02:00
Conditionally set PB_BUILD_VERSION
This commit is contained in:
parent
4ea13f71de
commit
da9070bc7d
1 changed files with 2 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue