File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ PROJECT := github.com/opencontainers/runc
1212BUILDTAGS ?= seccomp
1313
1414COMMIT ?= $(shell git describe --dirty --long --always)
15- VERSION ?= $(shell cat ./VERSION)
15+ EXTRA_VERSION :=
16+ VERSION := $(shell cat ./VERSION)$(EXTRA_VERSION )
1617LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION )
1718
1819GOARCH := $(shell $(GO ) env GOARCH)
Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ sudo make install
5656
5757` runc ` will be installed to ` /usr/local/sbin/runc ` on your system.
5858
59+ #### Version string customization
60+
61+ You can see the runc version by running ` runc --version ` . You can append a custom string to the
62+ version using the ` EXTRA_VERSION ` make variable when building, e.g.:
63+
64+ ``` bash
65+ make EXTRA_VERSION=" +build-1"
66+ ```
67+
68+ Bear in mind to include some separator for readability.
5969
6070#### Build Tags
6171
You can’t perform that action at this time.
0 commit comments