From 6f4d975c402d7848f5097f53c18000aa42581def Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Sun, 5 May 2024 16:52:37 +0530 Subject: [PATCH] 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 (cherry picked from commit 9d9273c926450a2f6f658768e3238b7082ec878d) Signed-off-by: Akhil Mohan --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3af9bc13cc..5c475b31f8d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ PROJECT := github.com/opencontainers/runc BUILDTAGS ?= seccomp 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) GOARCH := $(shell $(GO) env GOARCH)