From 8124c900c1decb64391b002c735a35b586067b8c Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Fri, 20 Sep 2019 00:06:37 +0200 Subject: [PATCH] Let's try the suggestion from https://github.com/actions/setup-go/issues/12#issuecomment-524631719 --- .github/workflows/push.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 54252d04..c9f3a646 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -16,19 +16,16 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - - name: Setup gopath - run: | - export GOPATH=$HOME/go - export GOBIN=$(go env GOPATH)/bin - mkdir -p $GOPATH/pkg - mkdir -p $GOBIN + - name: Set GOPATH + # temporary fix + # see https://github.com/actions/setup-go/issues/14 + run: | + echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)" + echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin" + shell: bash - name: Get dependencies run: | - export GOPATH=$HOME/go - export GOBIN=$(go env GOPATH)/bin - export PATH=$PATH:$GOPATH - export PATH=$PATH:$GOBIN go get -v -t -d ./... if [ -f Gopkg.toml ]; then curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh