Merge pull request #8929 from oss-qm/submit/makefile-override-revision
Makefile: allow REVISION be overwritten by environment
This commit is contained in:
commit
7688c4d008
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ TEST_IMAGE_LIST ?=
|
|||||||
|
|
||||||
# Used to populate variables in version package.
|
# Used to populate variables in version package.
|
||||||
VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always)
|
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
|
PACKAGE=github.com/containerd/containerd
|
||||||
SHIM_CGO_ENABLED ?= 0
|
SHIM_CGO_ENABLED ?= 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user