The Makefile works without GOPATH set and without install.tools fine.

The GOPATH layout is created in the Makefile:
mkdir -p "/home/test/cri-o/_output/src/github.com/kubernetes-incubator"
ln -s "/home/test/cri-o" "/home/test/cri-o/_output/src/github.com/kubernetes-incubator"

Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>
This commit is contained in:
Jan Pazdziora 2018-02-28 09:58:05 +01:00
parent 8ea79e755f
commit 96b2d0a4b7

View file

@ -158,28 +158,9 @@ apt-get install -y \
### Get Source Code
As with other Go projects, CRI-O must be cloned into a directory structure like:
```
GOPATH
└── src
└── github.com
└── kubernetes-incubator
└── cri-o
```
First, configure a `GOPATH` (if you are using go1.8 or later, this defaults to `~/go`).
Clone the source code using:
```bash
export GOPATH=~/go
mkdir -p $GOPATH
```
Next, clone the source code using:
```bash
mkdir -p $GOPATH/src/github.com/kubernetes-incubator
cd $_ # or cd $GOPATH/src/github.com/kubernetes-incubator
git clone https://github.com/kubernetes-incubator/cri-o # or your fork
cd cri-o
```
@ -187,7 +168,6 @@ cd cri-o
### Build
```bash
make install.tools
make
sudo make install
```