update build instruction with go 1.5 and 1.6

This commit is contained in:
Tuna 2016-10-03 00:46:49 +02:00 committed by GitHub
parent b5bac385a2
commit 9cb74ed023

View File

@ -36,10 +36,8 @@ $ PROG=kompose source script/bash_autocomplete
### Building with `go`
- You need `go` v1.5
- You need to set export `GO15VENDOREXPERIMENT=1` environment variable
- If your working copy is not in your `GOPATH`, you need to set it
accordingly.
- You need `go` v1.6 or later.
- If your working copy is not in your `GOPATH`, you need to set it accordingly.
```console
$ go build -tags experimental -o kompose ./cli/main
@ -47,6 +45,12 @@ $ go build -tags experimental -o kompose ./cli/main
You need `-tags experimental` because the current `bundlefile` package of docker/libcompose is still experimental.
If you have `go` v1.5, it's still good to build `kompose` with the following settings:
```console
$ CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -o kompose -tags experimental ./cli/main
```
### Building multi-platform binaries with make
- You need `make`