Skip to content

Commit 4303b6a

Browse files
Set new GOPATH env var to github actions (#491)
* Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Add step to set GOPATH
1 parent 58a5184 commit 4303b6a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,8 @@ jobs:
2424
- name: Check out code into the Go module directory
2525
uses: actions/checkout@v2
2626

27-
- name: Add GOPATH/bin to PATH
28-
# temporary fix
29-
# see https://github.com/actions/setup-go/issues/14
30-
run: |
31-
set -euo pipefail
32-
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
33-
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin"
27+
- name: Add GOPATH
28+
run: echo "::add-path::$(go env GOPATH)/bin"
3429

3530
- name: Install dependencies
3631
run: go mod download

0 commit comments

Comments
 (0)