Skip to content

Commit

Permalink
Bump golangci-lint versions & fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
edznux-dd committed Nov 15, 2024
1 parent aa9a958 commit 2e21eab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ linters:
- errchkjson
- errname
- errorlint
- execinquery
# - execinquery
- exhaustive
# - exhaustruct
- exportloopref
# - exportloopref
- forbidigo
- forcetypeassert
# - gci
Expand All @@ -41,7 +41,7 @@ linters:
# - gofumpt
- goheader
- goimports
- gomnd
# - gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
Expand Down
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ARG GO_VERSION=1.23.0
ARG XX_VERSION=1.2.1
ARG GOLANGCI_LINT_VERSION=v1.55.2
ARG GOLANGCI_LINT_VERSION=v1.62.0

# xx is a helper for cross-compilation
FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx
Expand Down Expand Up @@ -72,11 +72,8 @@ RUN --mount=type=bind,target=. \
--mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/cache/golangci-lint \
--mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint \
golangci-lint cache status && \
find / -iname .golangci.yaml && \
pwd && \
find / -iname .golangci.yaml -exec cat {} \; && \
golangci-lint run --build-tags "$BUILD_TAGS" -c .golangci.yml ./...
echo "cache status: " && golangci-lint cache status && echo "" && \
golangci-lint run --build-tags "$BUILD_TAGS" -c /src/.golangci.yml /src/...

FROM scratch AS binary-unix
COPY --link --from=build /out/kubehound /
Expand Down

0 comments on commit 2e21eab

Please sign in to comment.