From 965641dbc182a2a279afc4ae91152101f7d0cad2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 7 Aug 2023 16:56:11 +0200 Subject: [PATCH] Makefile: allow REVISION be overwritten by environment Required for distros that wanna use their local version and can't have some (possibly failing) git commands being run here. Signed-off-by: Enrico Weigelt, metux IT consult --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 487dff8a2..572a33d0f 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ TEST_IMAGE_LIST ?= # Used to populate variables in version package. VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always) -REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) +REVISION ?= $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) PACKAGE=github.com/containerd/containerd SHIM_CGO_ENABLED ?= 0