Skip to content

Commit

Permalink
chore(lint): Upgrade golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
novln committed Mar 17, 2022
1 parent 8be3c81 commit 5c7414b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/conf/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ENV GOPATH /home/gopher/go
ENV PATH $GOPATH/bin:$PATH
USER gopher

RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

WORKDIR /media/ulule/limiter
RUN go mod download
Expand Down
3 changes: 1 addition & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ fi
golinter_path="${GOPATH}/bin/golangci-lint"

if [[ ! -x "${golinter_path}" ]]; then
go get -u -d github.com/golangci/golangci-lint/cmd/golangci-lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
fi

SOURCE_DIRECTORY=$(dirname "${BASH_SOURCE[0]}")
Expand Down

0 comments on commit 5c7414b

Please sign in to comment.