bump git & linter version

This commit is contained in:
techknowlogick 2023-01-18 04:38:34 +08:00
parent 41f4822383
commit 4b3ad8cafd
1 changed files with 6 additions and 6 deletions

View File

@ -12,17 +12,17 @@ RUN addgroup \
--gid $GITEA_GID \
gitea
# upgrade git to v2.39.0
RUN curl -SL https://github.com/git/git/archive/v2.39.0.tar.gz \
# upgrade git to v2.39.1
RUN curl -SL https://github.com/git/git/archive/v2.39.1.tar.gz \
| tar -xzv -C /go \
&& apt-get update \
&& apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \
&& make -C /go/git-2.39.0 prefix=/usr all \
&& make -C /go/git-2.39.0 prefix=/usr install \
&& rm -rf /go/git-2.39.0 \
&& make -C /go/git-2.39.1 prefix=/usr all \
&& make -C /go/git-2.39.1 prefix=/usr install \
&& rm -rf /go/git-2.39.1 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs \
# install golangci-lint
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.0 \
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 \
&& golangci-lint --version