mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Make runc buildable everywhere
Currently we need to clone github.com/opencontainers/runc to GOPATH so we can make it, it's not friendly for developers. We can resolve it by vendoring itself as a symlink in GOPATH. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
+2
-1
@@ -1,2 +1,3 @@
|
||||
vendor/pkg
|
||||
runc
|
||||
/runc
|
||||
Godeps/_workspace/src/github.com/opencontainers/runc
|
||||
|
||||
@@ -5,6 +5,7 @@ BUILDTAGS=seccomp
|
||||
export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
|
||||
|
||||
all:
|
||||
ln -sfn $(CURDIR) $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
|
||||
go build -tags "$(BUILDTAGS)" -o runc .
|
||||
|
||||
vet:
|
||||
@@ -29,6 +30,7 @@ install:
|
||||
|
||||
clean:
|
||||
rm runc
|
||||
rm $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
|
||||
|
||||
validate: vet
|
||||
script/validate-gofmt
|
||||
|
||||
Reference in New Issue
Block a user