Update golangci-lint

- Download the newest version of golangci-lint.
- Use the recommended install script.
- Relavent: https://github.com/go-gitea/gitea/pull/17647
This commit is contained in:
Gusted 2021-11-15 23:48:52 +01:00
parent 39572dd672
commit 3ccf5d99a3
No known key found for this signature in database
GPG Key ID: FD821B732837125F
2 changed files with 2 additions and 2 deletions

View File

@ -23,4 +23,4 @@ RUN curl -SL https://github.com/git/git/archive/v2.33.0.tar.gz \
&& apt-get install -y git-lfs \
# install golangci-lint
&& export BINARY="golangci-lint" \
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
&& curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.43.0/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0

View File

@ -5,4 +5,4 @@ A docker image for Gitea ci test
- From golang:1.17
- upgrade git to v2.33.0
- install git-lfs
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.37.0
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.43.0