mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #4382 from rata/Makefile-override-fixes
[1.1] Revert "allow overriding VERSION value in Makefile" and add EXTRA_VERSION
This commit is contained in:
@@ -12,7 +12,8 @@ PROJECT := github.com/opencontainers/runc
|
||||
BUILDTAGS ?= seccomp
|
||||
|
||||
COMMIT ?= $(shell git describe --dirty --long --always)
|
||||
VERSION ?= $(shell cat ./VERSION)
|
||||
EXTRA_VERSION :=
|
||||
VERSION := $(shell cat ./VERSION)$(EXTRA_VERSION)
|
||||
LDFLAGS_COMMON := -X main.gitCommit=$(COMMIT) -X main.version=$(VERSION)
|
||||
|
||||
GOARCH := $(shell $(GO) env GOARCH)
|
||||
|
||||
@@ -56,6 +56,16 @@ sudo make install
|
||||
|
||||
`runc` will be installed to `/usr/local/sbin/runc` on your system.
|
||||
|
||||
#### Version string customization
|
||||
|
||||
You can see the runc version by running `runc --version`. You can append a custom string to the
|
||||
version using the `EXTRA_VERSION` make variable when building, e.g.:
|
||||
|
||||
```bash
|
||||
make EXTRA_VERSION="+build-1"
|
||||
```
|
||||
|
||||
Bear in mind to include some separator for readability.
|
||||
|
||||
#### Build Tags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user