mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
allow overriding VERSION value in Makefile
this allows using a custom version string while building runc without modifying the VERSION file Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ BUILDTAGS ?= seccomp urfave_cli_no_docs
|
|||||||
BUILDTAGS += $(EXTRA_BUILDTAGS)
|
BUILDTAGS += $(EXTRA_BUILDTAGS)
|
||||||
|
|
||||||
COMMIT ?= $(shell git describe --dirty --long --always)
|
COMMIT ?= $(shell git describe --dirty --long --always)
|
||||||
VERSION := $(shell cat ./VERSION)
|
VERSION ?= $(shell cat ./VERSION)
|
||||||
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION)
|
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION)
|
||||||
|
|
||||||
GOARCH := $(shell $(GO) env GOARCH)
|
GOARCH := $(shell $(GO) env GOARCH)
|
||||||
|
|||||||
Reference in New Issue
Block a user