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),)