Update CI to install tools with go install rather than go get

Signed-off-by: Calle Pettersson <calle@cape.nu>
This commit is contained in:
Calle Pettersson 2021-03-24 17:01:51 +01:00
parent 3f2a143104
commit 5d224b43ca

View File

@ -18,11 +18,8 @@ install:
appveyor DownloadFile https://github.com/golangci/golangci-lint/releases/download/v1.21.0/golangci-lint-1.21.0-windows-amd64.zip
Expand-Archive golangci-lint-1.21.0-windows-amd64.zip
Move-Item golangci-lint-1.21.0-windows-amd64\golangci-lint-1.21.0-windows-amd64\golangci-lint.exe $env:GOPATH\bin\golangci-lint.exe
- ps: |
$env:GO111MODULE="off"
go get -u github.com/prometheus/promu
go get -u github.com/josephspurrier/goversioninfo/cmd/goversioninfo
$env:GO111MODULE="on"
- go install github.com/prometheus/promu@v0.11.1
- go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.2.0
test_script:
- make test