From 4417980c9cacf43d845e3dde5a8bf92398f82726 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Sun, 4 May 2025 21:26:47 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20clarify=20that=20=E2=80=99args:=20--pat?= =?UTF-8?q?h-mode=3Dabs=E2=80=99=20is=20needed=20for=20workspace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d76a98a136..d8f77ec194 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ on: env: GO_VERSION: stable - GOLANGCI_LINT_VERSION: v2.0 + GOLANGCI_LINT_VERSION: v2.1 jobs: detect-modules: @@ -151,6 +151,7 @@ jobs: with: version: ${{ env.GOLANGCI_LINT_VERSION }} working-directory: ${{ matrix.modules }} + args: --path-mode=abs ``` @@ -179,7 +180,7 @@ jobs: with: os: ${{ matrix.os }} go-version: ${{ matrix.go-version }} - golangci-lint-version: v2.0 + golangci-lint-version: v2.1 ``` ```yaml @@ -201,7 +202,7 @@ on: golangci-lint-version: description: 'Golangci-lint version' type: string - default: 'v2.0' + default: 'v2.1' jobs: detect-modules: @@ -233,6 +234,7 @@ jobs: with: version: ${{ inputs.golangci-lint-version }} working-directory: ${{ matrix.modules }} + args: --path-mode=abs ``` You will also likely need to add the following `.gitattributes` file to ensure that line endings for Windows builds are properly formatted: