Skip to content

docs: clarify that ’args: --path-mode=abs’ is needed for working-directory #1230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ on:

env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v2.0
GOLANGCI_LINT_VERSION: v2.1

jobs:
detect-modules:
Expand Down Expand Up @@ -151,6 +151,7 @@ jobs:
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.modules }}
args: --path-mode=abs
```

</details>
Expand Down Expand Up @@ -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
Expand All @@ -201,7 +202,7 @@ on:
golangci-lint-version:
description: 'Golangci-lint version'
type: string
default: 'v2.0'
default: 'v2.1'

jobs:
detect-modules:
Expand Down Expand Up @@ -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:
Expand Down
Loading