File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ PROJECT := github.com/opencontainers/runc
12
12
BUILDTAGS ?= seccomp
13
13
14
14
COMMIT ?= $(shell git describe --dirty --long --always)
15
- VERSION ?= $(shell cat ./VERSION)
15
+ EXTRA_VERSION :=
16
+ VERSION := $(shell cat ./VERSION)$(EXTRA_VERSION )
16
17
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION )
17
18
18
19
GOARCH := $(shell $(GO ) env GOARCH)
Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ sudo make install
56
56
57
57
` runc ` will be installed to ` /usr/local/sbin/runc ` on your system.
58
58
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.
59
69
60
70
#### Build Tags
61
71
You can’t perform that action at this time.
0 commit comments