From a824e38f4f3995759a5dd58d02d8d060690742da Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Mon, 25 Apr 2022 04:25:59 +0000 Subject: [PATCH] fix bootstrap and lint script Signed-off-by: GitHub --- script/bootstrap | 2 +- script/lint | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index d084afd..ae06885 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -28,7 +28,7 @@ fi if [ ! -f "${GOBIN}/golangci-lint" ]; then echo "golangci was not found, installing..." - go get github.com/golangci/golangci-lint/cmd/golangci-lint@master + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2 fi if [ ! -f "${GOBIN}/goimports" ]; then diff --git a/script/lint b/script/lint index df96b79..b119671 100755 --- a/script/lint +++ b/script/lint @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || { set -x } -_tools/bin/golangci-lint run --config .golangci.yaml +golangci-lint run --config .golangci.yaml