Skip to content

Commit ed7edf7

Browse files
committed
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>
1 parent 7667439 commit ed7edf7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor/pkg
2-
runc
2+
/runc
3+
Godeps/_workspace/src/github.com/opencontainers/runc

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ BUILDTAGS=seccomp
55
export GOPATH:=$(CURDIR)/Godeps/_workspace:$(GOPATH)
66

77
all:
8+
ln -sfn $(CURDIR) $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
89
go build -tags "$(BUILDTAGS)" -o runc .
910

1011
vet:
@@ -29,6 +30,7 @@ install:
2930

3031
clean:
3132
rm runc
33+
rm $(CURDIR)/Godeps/_workspace/src/github.com/opencontainers/runc
3234

3335
validate: vet
3436
script/validate-gofmt

0 commit comments

Comments
 (0)