From 3bf763c245d3a8d5a848dadaa3fd5af850384693 Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 16 Nov 2021 13:47:33 +0800 Subject: [PATCH] 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 Reviewed-on: https://gitea.com/gitea/test-env/pulls/10 Reviewed-by: Lunny Xiao Reviewed-by: a1012112796 <1012112796@qq.com> Co-authored-by: Gusted Co-committed-by: Gusted --- Dockerfile | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e5bede..8a83bff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 8e230bd..7305604 100644 --- a/README.md +++ b/README.md @@ -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