Skip to content

Commit

Permalink
Fix golangci-lint install
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Aug 4, 2022
1 parent 7036c6f commit 03f819c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
chmod a+x /usr/local/bin/kubectl; \
pip install codespell

RUN curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.41.0
RUN curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.47.3
RUN set -x \
&& apk --no-cache add \
libarchive-tools \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
)/bin/linux/${ARCH}/kubectl -o /usr/local/bin/kubectl && \
chmod a+x /usr/local/bin/kubectl; \
pip install codespell
RUN curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.41.0
RUN curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.47.3
WORKDIR /source
# End Dapper stuff

Expand Down
5 changes: 4 additions & 1 deletion scripts/validate
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ GO=${GO-go}
echo Running validation

echo Running: golangci-lint
golangci-lint run -v
# workaround for latest golanci-lint version, by default it always
# runs against latest version of go, which is not what we want.
# https://github.com/golangci/golangci-lint/issues/2673
golangci-lint run --version --verbose --out-format=github-actions

echo Running: go fmt
go fmt ./
Expand Down

0 comments on commit 03f819c

Please sign in to comment.