1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

improve calculated version numbers

for modified git workspaces a `-modified` is added to the semantic version
  in the makefile.
This commit is contained in:
Bernhard Reiter 2025-06-20 16:54:29 +02:00 committed by koplas
parent 1f1a2a4cbc
commit 9af381e06b
No known key found for this signature in database

View file

@ -47,7 +47,7 @@ tag_checked_out:
# In this case we might in some situations see an error like
# `/bin/bash: line 1: 2b55bbb: value too great for base (error token is "2b55bbb")`
# which can be ignored.
GITDESC := $(shell git describe --tags --always 2>/dev/null || true)
GITDESC := $(shell git describe --tags --always --dirty=-modified 2>/dev/null || true)
CURRENT_FOLDER_NAME := $(notdir $(CURDIR))
ifeq ($(strip $(GITDESC)),)
SEMVER := $(CURRENT_FOLDER_NAME)