Merge pull request #136 from docker/revert-deps
Revert go 1.5+ dep management
This commit is contained in:
commit
dca8e5995f
807 changed files with 10 additions and 12 deletions
|
@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
|
|||
ENV GO_VERSION 1.5.2
|
||||
RUN curl -sSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar -v -C /usr/local -xz
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
ENV GOPATH /go:/go/src/github.com/docker/containerd/vendor
|
||||
|
||||
# install golint/vet
|
||||
RUN go get github.com/golang/lint/golint \
|
||||
|
@ -21,5 +21,9 @@ RUN go get github.com/golang/lint/golint \
|
|||
|
||||
COPY . /go/src/github.com/docker/containerd
|
||||
|
||||
# get deps, until they are in vendor
|
||||
# TODO: remomve this when there is a dep tool
|
||||
RUN go get -d -v github.com/docker/containerd/ctr \
|
||||
&& go get -d -v github.com/docker/containerd/containerd
|
||||
|
||||
WORKDIR /go/src/github.com/docker/containerd
|
||||
|
|
11
Makefile
11
Makefile
|
@ -11,16 +11,9 @@ endif
|
|||
DOCKER_IMAGE := containerd-dev$(if $(GIT_BRANCH),:$(GIT_BRANCH))
|
||||
DOCKER_RUN := docker run --rm -i $(DOCKER_FLAGS) "$(DOCKER_IMAGE)"
|
||||
|
||||
export GO15VENDOREXPERIMENT:=1
|
||||
GOLANG_VERSION:=$(shell go version | cut -d ' ' -f3 | cut -c 3-)
|
||||
export GOPATH:=$(CURDIR)/vendor:$(GOPATH)
|
||||
|
||||
|
||||
all: check_version client daemon shim
|
||||
|
||||
check_version:
|
||||
ifneq ($(shell /bin/echo -e "1.5\n${GOLANG_VERSION}" | sort -V | head -n1),1.5)
|
||||
$(error "Golang 1.5+ required to build containerd. Current version: ${GOLANG_VERSION}")
|
||||
endif
|
||||
all: client daemon shim
|
||||
|
||||
bin:
|
||||
mkdir -p bin/
|
||||
|
|
|
@ -19,7 +19,7 @@ For more documentation on various subjects refer to the `/docs` directory in thi
|
|||
|
||||
## Building
|
||||
|
||||
You will need to make sure that you have Go 1.5+ installed on your system and the containerd repository is cloned
|
||||
You will need to make sure that you have Go installed on your system and the containerd repository is cloned
|
||||
in your `$GOPATH`. You will also need to make sure that you have all the dependencies cloned as well.
|
||||
Currently, contributing to containerd is not for the first time devs as many dependencies are not vendored and
|
||||
work is being completed at a high rate.
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue