Skip to content

Commit

Permalink
Document semver fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
pschork committed May 14, 2024
1 parent 5ea2fc5 commit 7e2eec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GITCOMMIT := $(shell git rev-parse --short HEAD)
GITDATE := $(shell git log -1 --format=%cd --date=unix)

# GitVersion provides the semantic versioning for the project. If docker is not installed, semver fallsback to 0.0.0
# GitVersion provides the semantic versioning for the project.
SEMVER := $(shell docker run --rm --volume "${PWD}/../:/repo" gittools/gitversion:5.12.0 /repo -output json -showvariable SemVer)
ifeq ($(SEMVER), )
SEMVER = "0.0.0"
SEMVER = "0.0.0" # Fallback if docker is not installed or gitversion fails
endif

build: clean
Expand Down

0 comments on commit 7e2eec5

Please sign in to comment.