From 9cb74ed0231aa31771394d355c936aa88a2f2ce8 Mon Sep 17 00:00:00 2001 From: Tuna Date: Mon, 3 Oct 2016 00:46:49 +0200 Subject: [PATCH] update build instruction with go 1.5 and 1.6 --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 450cb3b9..8b0c53f8 100644 --- a/README.md +++ b/README.md @@ -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`