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:
parent
76674393ef
commit
ed7edf771f
|
@ -1,2 +1,3 @@
|
||||||
vendor/pkg
|
vendor/pkg
|
||||||
runc
|
/runc
|
||||||
|
Godeps/_workspace/src/github.com/opencontainers/runc
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -5,6 +5,7 @@ BUILDTAGS=seccomp
|
||||||
export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
|
export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
ln -sfn $(CURDIR) $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
|
||||||
go build -tags "$(BUILDTAGS)" -o runc .
|
go build -tags "$(BUILDTAGS)" -o runc .
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
|
@ -29,6 +30,7 @@ install:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm runc
|
rm runc
|
||||||
|
rm $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
|
||||||
|
|
||||||
validate: vet
|
validate: vet
|
||||||
script/validate-gofmt
|
script/validate-gofmt
|
||||||
|
|
Loading…
Reference in New Issue