mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-02-11 10:17:27 +00:00
fix: set 'path-mode=abs' by default when 'working-directory' is used
This commit is contained in:
parent
a3942e2497
commit
54f466b57e
3 changed files with 9 additions and 0 deletions
3
dist/post_run/index.js
generated
vendored
3
dist/post_run/index.js
generated
vendored
|
|
@ -93015,6 +93015,9 @@ async function runLint(binPath, patchPath) {
|
|||
if (!userArgNames.has(`path-prefix`)) {
|
||||
addedArgs.push(`--path-prefix=${workingDirectory}`);
|
||||
}
|
||||
if (!userArgNames.has(`path-mode`)) {
|
||||
addedArgs.push(`--path-mode=abs`);
|
||||
}
|
||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
await runVerify(binPath, userArgsMap, cmdArgs);
|
||||
|
|
|
|||
3
dist/run/index.js
generated
vendored
3
dist/run/index.js
generated
vendored
|
|
@ -93015,6 +93015,9 @@ async function runLint(binPath, patchPath) {
|
|||
if (!userArgNames.has(`path-prefix`)) {
|
||||
addedArgs.push(`--path-prefix=${workingDirectory}`);
|
||||
}
|
||||
if (!userArgNames.has(`path-mode`)) {
|
||||
addedArgs.push(`--path-mode=abs`);
|
||||
}
|
||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
await runVerify(binPath, userArgsMap, cmdArgs);
|
||||
|
|
|
|||
|
|
@ -126,6 +126,9 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
|
|||
if (!userArgNames.has(`path-prefix`)) {
|
||||
addedArgs.push(`--path-prefix=${workingDirectory}`)
|
||||
}
|
||||
if (!userArgNames.has(`path-mode`)) {
|
||||
addedArgs.push(`--path-mode=abs`)
|
||||
}
|
||||
cmdArgs.cwd = path.resolve(workingDirectory)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue