Skip to content

Commit

Permalink
chore: unify commit appending
Browse files Browse the repository at this point in the history
Co-authored-by: Hilmar Falkenberg <hilmar.falkenberg@sap.com>
  • Loading branch information
jakobmoellerdev and hilmarf committed Nov 20, 2024
1 parent f67f8eb commit 5d74e1f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ifeq ($(EFFECTIVE_VERSION),)
EFFECTIVE_VERSION := $(VERSION)+$(COMMIT)
endif
GIT_TREE_STATE := $(shell [ -z "$$(git status --porcelain 2>/dev/null)" ] && echo clean || echo dirty)
COMMIT := $(shell git rev-parse --verify HEAD)

CONTROLLER_TOOLS_VERSION ?= v0.14.0
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
Expand Down
2 changes: 1 addition & 1 deletion components/helmdemo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMMIT = $(shell git rev-parse --verify
# if EFFECTIVE_VERSION is not set, set it to VERSION-COMMIT
# this is not the same as '?=' because it will also set the value if EFFECTIVE_VERSION is set to an empty string
ifeq ($(EFFECTIVE_VERSION),)
EFFECTIVE_VERSION := $(VERSION)-$(COMMIT)
EFFECTIVE_VERSION := $(VERSION)+$(COMMIT)
endif
HELMINSTVERSION ?= $(VERSION)

Expand Down
2 changes: 1 addition & 1 deletion components/helminstaller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COMMIT := $(shell git rev-parse --verify
# if EFFECTIVE_VERSION is not set, set it to VERSION-COMMIT
# this is not the same as '?=' because it will also set the value if EFFECTIVE_VERSION is set to an empty string
ifeq ($(EFFECTIVE_VERSION),)
EFFECTIVE_VERSION := $(VERSION)-$(COMMIT)
EFFECTIVE_VERSION := $(VERSION)+$(COMMIT)
endif
GIT_TREE_STATE := $(shell [ -z "$$(git status --porcelain 2>/dev/null)" ] && echo clean || echo dirty)
PLATFORM := $(shell go env GOOS)/$(shell go env GOARCH)
Expand Down
2 changes: 1 addition & 1 deletion components/subchartsdemo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COMMIT = $(shell git rev-parse --verify
# if EFFECTIVE_VERSION is not set, set it to VERSION-COMMIT
# this is not the same as '?=' because it will also set the value if EFFECTIVE_VERSION is set to an empty string
ifeq ($(EFFECTIVE_VERSION),)
EFFECTIVE_VERSION := $(VERSION)-$(COMMIT)
EFFECTIVE_VERSION := $(VERSION)+$(COMMIT)
endif
HELMINSTVERSION ?= $(VERSION)

Expand Down
2 changes: 1 addition & 1 deletion examples/make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OCI_REPO := ghcr.io/mandelsoft/cnudie
REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION = $(shell cat $(REPO_ROOT)/VERSION)
COMMIT = $(shell git rev-parse --verify HEAD)
EFFECTIVE_VERSION = $(VERSION)-$(COMMIT)
EFFECTIVE_VERSION = $(VERSION)+$(COMMIT)

.PHONY: ctf
ctf: ca ## Create CTF from component archive
Expand Down

0 comments on commit 5d74e1f

Please sign in to comment.