Skip to content

Commit

Permalink
setup(dockerfile): update linter version from 1.61.0 to 1.62.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemkaKun authored Nov 21, 2024
1 parent 03393d5 commit c991ce9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN addgroup -S lintergroup && adduser -S linteruser -G lintergroup \
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

# NOTE: update to latest secure libcrypto3 version.
RUN apk add --no-cache curl=8.10.1-r0 go=1.22.8-r0 libcrypto3=3.3.2-r1 \
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /bin v1.61.0 \
RUN apk add --no-cache curl=8.11.0-r2 go=1.22.9-r0 libcrypto3=3.3.2-r1 \
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /bin v1.62.0 \
&& apk del curl

WORKDIR /linter_workdir
Expand All @@ -19,10 +19,8 @@ HEALTHCHECK --timeout=1s --retries=1 CMD /bin/golangci-lint --version || exit 1

# NOTE: `gci` linter conflicts with `gofumpt`, which I believe have more sense to use than `gci`.
ENTRYPOINT ["/bin/golangci-lint", "run", "--enable-all", \
"--disable", "execinquery", \
"--disable", "exportloopref", \
"--disable", "forbidigo", \
"--disable", "depguard", \
"--disable", "testpackage", \
"--disable", "gci", \
"--disable", "gomnd"]
"--disable", "gci"]

0 comments on commit c991ce9

Please sign in to comment.