File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ BUILDTAGS ?= seccomp urfave_cli_no_docs
18
18
BUILDTAGS += $(EXTRA_BUILDTAGS )
19
19
20
20
COMMIT ?= $(shell git describe --dirty --long --always)
21
- VERSION ?= $(shell cat ./VERSION)
21
+ EXTRA_VERSION :=
22
+ VERSION := $(shell cat ./VERSION)$(EXTRA_VERSION )
22
23
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION )
23
24
24
25
GOARCH := $(shell $(GO ) env GOARCH)
Original file line number Diff line number Diff line change @@ -86,6 +86,17 @@ sudo make install
86
86
87
87
` runc ` will be installed to ` /usr/local/sbin/runc ` on your system.
88
88
89
+ #### Version string customization
90
+
91
+ You can see the runc version by running ` runc --version ` . You can append a custom string to the
92
+ version using the ` EXTRA_VERSION ` make variable when building, e.g.:
93
+
94
+ ``` bash
95
+ make EXTRA_VERSION=" +build-1"
96
+ ```
97
+
98
+ Bear in mind to include some separator for readability.
99
+
89
100
#### Build Tags
90
101
91
102
` runc ` supports optional build tags for compiling support of various features,
You can’t perform that action at this time.
0 commit comments