Skip to content

Commit

Permalink
docker-golangci-lint: adjust to make compatible with MSYS2 shell
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Aug 1, 2024
1 parent 06a3c5d commit 2e5dbd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-golangci-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
# Runs golangci-lint locally using Docker without installing it on machine
# (see https://golangci-lint.run/welcome/install/#docker)

docker run -t --rm -v "$(pwd)":/app -v ~/.cache/golangci-lint/v1.59.1:/root/.cache -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v
# See https://github.com/kaitai-io/kaitai_struct_tests/blob/3c5fb218ba/docker-ci#L215-L220
# for an explanation of why we use the `MSYS2_ARG_CONV_EXCL` environment variable

MSYS2_ARG_CONV_EXCL='*' docker run -t --rm -v "$(pwd)":/app -v ~/.cache/golangci-lint/v1.59.1:/root/.cache -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v

0 comments on commit 2e5dbd6

Please sign in to comment.