Skip to content

Commit 9d9273c

Browse files
committed
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 <[email protected]>
1 parent 03db4d6 commit 9d9273c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ BUILDTAGS ?= seccomp urfave_cli_no_docs
1818
BUILDTAGS += $(EXTRA_BUILDTAGS)
1919

2020
COMMIT ?= $(shell git describe --dirty --long --always)
21-
VERSION := $(shell cat ./VERSION)
21+
VERSION ?= $(shell cat ./VERSION)
2222
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION)
2323

2424
GOARCH := $(shell $(GO) env GOARCH)

0 commit comments

Comments
 (0)