Просмотр исходного кода

Fix bootstrap target by using canonical golangci-lint install URL

The install.sh script on golangci-lint's master branch ships stale
SHA-256 checksums (the repo migrated master to main per
golangci/golangci-lint#6540), so 'make bootstrap' currently fails on
a fresh clone with:

  golangci/golangci-lint err hash_sha256_verify checksum for
    '/tmp/.../golangci-lint-2.12.2-linux-amd64.tar.gz' did not verify
    fd3a137c... vs 8df580d2...
  make: *** [Makefile:21: bootstrap] Error 1

Switch to https://golangci-lint.run/install.sh, the canonical URL the
upstream project now publishes. It serves the same installer with
current checksums, so 'make bootstrap' completes successfully.

Fixes #2694
truffle 6 месяцев назад
Родитель
Сommit
b955f07900
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -18,7 +18,7 @@ ci: testcgo build
 #########################################
 
 bootstra%:
-	$Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin latest
+	$Q curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $$(go env GOPATH)/bin latest
 	$Q go install golang.org/x/vuln/cmd/govulncheck@latest
 	$Q go install gotest.tools/gotestsum@latest
 	$Q go install github.com/goreleaser/goreleaser/v2@latest