Skip to content

Commit 16ece5e

Browse files
docs: clarify that ’args: --path-mode=abs’ is needed for working-directory (#1230)
1 parent a3942e2 commit 16ece5e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ on:
120120
121121
env:
122122
GO_VERSION: stable
123-
GOLANGCI_LINT_VERSION: v2.0
123+
GOLANGCI_LINT_VERSION: v2.1
124124
125125
jobs:
126126
detect-modules:
@@ -151,6 +151,7 @@ jobs:
151151
with:
152152
version: ${{ env.GOLANGCI_LINT_VERSION }}
153153
working-directory: ${{ matrix.modules }}
154+
args: --path-mode=abs
154155
```
155156

156157
</details>
@@ -179,7 +180,7 @@ jobs:
179180
with:
180181
os: ${{ matrix.os }}
181182
go-version: ${{ matrix.go-version }}
182-
golangci-lint-version: v2.0
183+
golangci-lint-version: v2.1
183184
```
184185

185186
```yaml
@@ -201,7 +202,7 @@ on:
201202
golangci-lint-version:
202203
description: 'Golangci-lint version'
203204
type: string
204-
default: 'v2.0'
205+
default: 'v2.1'
205206
206207
jobs:
207208
detect-modules:
@@ -233,6 +234,7 @@ jobs:
233234
with:
234235
version: ${{ inputs.golangci-lint-version }}
235236
working-directory: ${{ matrix.modules }}
237+
args: --path-mode=abs
236238
```
237239

238240
You will also likely need to add the following `.gitattributes` file to ensure that line endings for Windows builds are properly formatted:

0 commit comments

Comments
 (0)