From da9070bc7d5884d8678cce2f55425212e92a9bb4 Mon Sep 17 00:00:00 2001 From: eikendev Date: Mon, 18 Apr 2022 12:44:39 +0200 Subject: [PATCH] Conditionally set PB_BUILD_VERSION --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 93b43b0..fc97081 100644 --- a/Makefile +++ b/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