From a66af206865e2bb87e2cdb1a612ff81daacedbb5 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 15 Dec 2020 14:17:50 +0200 Subject: [PATCH] .github/workflows/main.yml: fall back to `go get` instead of `go install` for installing aux tools It is unclear why `go install` doesn't work in Github Actions. Needs additional investigation. The following error is returned now: cannot find package "golang.org/x/lint/golint" in any of: /opt/hostedtoolcache/go/1.15.5/x64/src/golang.org/x/lint/golint (from $GOROOT) /home/runner/go/src/golang.org/x/lint/golint (from $GOPATH) --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68986c9051..fa7fe013d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: id: go - name: Dependencies run: | - go install golang.org/x/lint/golint - go install github.com/kisielk/errcheck + go get -u golang.org/x/lint/golint + go get -u github.com/kisielk/errcheck curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.29.0 - name: Code checkout uses: actions/checkout@master