Skip to content

Commit

Permalink
Build golangci-lint from source
Browse files Browse the repository at this point in the history
It seems like there's an issue if you run golangci-lint binaries with go
compiler versions different than the one that was used to build it.

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
  • Loading branch information
mem committed Dec 11, 2023
1 parent 163d07b commit 7fd41b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FROM go as tools
RUN env GOBIN=/build go install github.com/whereswaldon/semversort@v0.0.6

# Add golangci-lint
COPY --from=registry.hub.docker.com/golangci/golangci-lint:v1.55.2 /usr/bin/golangci-lint /build
RUN env GOBIN=/build go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2

# Add shellcheck
COPY --from=registry.hub.docker.com/koalaman/shellcheck:v0.9.0 /bin/shellcheck /build
Expand Down

0 comments on commit 7fd41b1

Please sign in to comment.