From 36e8461de181bfa3152631e3c55116c88ea38d45 Mon Sep 17 00:00:00 2001 From: Andres Date: Mon, 10 Dec 2018 10:29:56 +0100 Subject: [PATCH 1/2] Change CGO_ENABLED var in binary task --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ba7169a8..726cf1d6c 100644 --- a/Makefile +++ b/Makefile @@ -23,10 +23,10 @@ KUBELESS_ENVS := \ default: binary all: - CGO_ENABLED=1 ./script/make.sh + CGO_ENABLED=0 ./script/make.sh binary: - CGO_ENABLED=1 ./script/binary + CGO_ENABLED=0 ./script/binary binary-cross: ./script/binary-cli From 442d95c98a0bd6bd3b9c1a05f1e4524ee6663018 Mon Sep 17 00:00:00 2001 From: Andres Date: Mon, 10 Dec 2018 11:40:19 +0100 Subject: [PATCH 2/2] Fix permissions issue --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c443e5afc..5ba938f3c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,6 +81,8 @@ jobs: steps: - checkout - <<: *exports + # go build creates files under /usr/local/go where the running user doesn't have permissions to write + - run: sudo chown -R circleci:circleci /usr/local/go/ - run: go get -u golang.org/x/lint/golint - run: make bootstrap - run: make VERSION=${CONTROLLER_TAG} binary