ci: use install.sh from golangci-lint repo

The golangci-lint install script at goreleaser.com is deprecated. Docs
now advise to install from a github link:

goreleaser/godownloader#207

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit f3ed883df9)
This commit is contained in:
Madhu Rajanna 2021-12-22 19:06:32 +05:30 committed by mergify[bot]
parent 89f6db4c3d
commit 831dbc70f9

View File

@ -37,7 +37,7 @@ RUN source /build.env \
&& dnf -y update \ && dnf -y update \
&& dnf -y clean all \ && dnf -y clean all \
&& gem install mdl \ && gem install mdl \
&& curl -sf "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh" \ && curl -sf "https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_VERSION}/install.sh" \
| bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}" \ | bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}" \
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \ && curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \ | sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \