scripts: fix build with go-1.5 after switch to vendor/
authorDan Williams <dcbw@redhat.com>
Thu, 24 Mar 2016 16:33:19 +0000 (11:33 -0500)
committerDan Williams <dcbw@redhat.com>
Thu, 24 Mar 2016 16:33:19 +0000 (11:33 -0500)
go-1.6 enables vendor by default, but go-1.5 needs an environment variable.

build

diff --git a/build b/build
index f987dbb..815b360 100755 (executable)
--- a/build
+++ b/build
@@ -9,6 +9,7 @@ if [ ! -h gopath/src/${REPO_PATH} ]; then
        ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
 fi
 
+export GO15VENDOREXPERIMENT=1
 export GOBIN=${PWD}/bin
 export GOPATH=${PWD}/gopath