From: Elan Ruusamäe Date: Tue, 21 Apr 2015 04:43:12 +0000 (+0300) Subject: fix issue when invoked via builder script X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fatlas-upload-cli.git;a=commitdiff_plain;h=ba85c2197a01f3ec94a9bd3cf3b87f893553720a fix issue when invoked via builder script --- 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