From 3222bcfa68f207d89ab5bc7fb3caea1f50192a65 Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Fri, 6 Sep 2024 19:46:18 +0000 Subject: [PATCH] Allow setting version and revision Signed-off-by: Justin Alvarez --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4876b8c22..4aacfb39b 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,8 @@ CMD_DESTDIR ?= /usr/local GO111MODULE_VALUE=auto OUTDIR ?= $(CURDIR)/out PKG=github.com/awslabs/soci-snapshotter -VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always --tags) -REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) +VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always --tags) +REVISION ?= $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi) GO_BUILDTAGS ?= ifneq ($(STATIC),)