From ba85c2197a01f3ec94a9bd3cf3b87f893553720a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 21 Apr 2015 07:43:12 +0300 Subject: [PATCH] fix issue when invoked via builder script --- atlas-upload-cli.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atlas-upload-cli.spec b/atlas-upload-cli.spec index 6859e4b..304c675 100644 --- a/atlas-upload-cli.spec +++ b/atlas-upload-cli.spec @@ -38,6 +38,9 @@ deploys. #package github.com/mitchellh/ioprogress: cannot download, $GOPATH not set. For more details see: go help gopath %build +# these interfere with go download -- the git vars point to .spec repo +unset GIT_DIR GIT_WORK_TREE + export GOPATH=$(pwd)/vendor # make -j1 because https://github.com/hashicorp/atlas-upload-cli/pull/10 %{__make} -j1 -- 2.44.0