Update golangci-lint (#10)

- Download the newest version of golangci-lint.
- Use the recommended install script.
- Relavent: https://github.com/go-gitea/gitea/pull/17647

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/10
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Gusted <gusted@noreply.gitea.io>
Co-committed-by: Gusted <gusted@noreply.gitea.io>
This commit is contained in:
Gusted 2021-11-16 13:47:33 +08:00 committed by Lunny Xiao
parent 39572dd672
commit 3bf763c245
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