mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 23:48:27 +00:00
Add built dist files
This commit is contained in:
parent
4601e576f2
commit
de5e6fe60a
2 changed files with 8 additions and 4 deletions
6
dist/post_run/index.js
vendored
6
dist/post_run/index.js
vendored
|
|
@ -66574,6 +66574,7 @@ function runLint(lintPath, patchPath) {
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
const userArgs = core.getInput(`args`);
|
const userArgs = core.getInput(`args`);
|
||||||
|
const allowExtraOutFormatArgs = core.getInput(`allow-extra-out-format-args`);
|
||||||
const addedArgs = [];
|
const addedArgs = [];
|
||||||
const userArgNames = new Set(userArgs
|
const userArgNames = new Set(userArgs
|
||||||
.trim()
|
.trim()
|
||||||
|
|
@ -66581,8 +66582,9 @@ function runLint(lintPath, patchPath) {
|
||||||
.map((arg) => arg.split(`=`)[0])
|
.map((arg) => arg.split(`=`)[0])
|
||||||
.filter((arg) => arg.startsWith(`-`))
|
.filter((arg) => arg.startsWith(`-`))
|
||||||
.map((arg) => arg.replace(/^-+/, ``)));
|
.map((arg) => arg.replace(/^-+/, ``)));
|
||||||
if (userArgNames.has(`out-format`)) {
|
if (userArgNames.has(`out-format`) && !allowExtraOutFormatArgs) {
|
||||||
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
|
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a
|
||||||
|
future version (set 'allow-extra-out-format-args' input to true to override)`);
|
||||||
}
|
}
|
||||||
addedArgs.push(`--out-format=github-actions`);
|
addedArgs.push(`--out-format=github-actions`);
|
||||||
if (patchPath) {
|
if (patchPath) {
|
||||||
|
|
|
||||||
6
dist/run/index.js
vendored
6
dist/run/index.js
vendored
|
|
@ -66574,6 +66574,7 @@ function runLint(lintPath, patchPath) {
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
const userArgs = core.getInput(`args`);
|
const userArgs = core.getInput(`args`);
|
||||||
|
const allowExtraOutFormatArgs = core.getInput(`allow-extra-out-format-args`);
|
||||||
const addedArgs = [];
|
const addedArgs = [];
|
||||||
const userArgNames = new Set(userArgs
|
const userArgNames = new Set(userArgs
|
||||||
.trim()
|
.trim()
|
||||||
|
|
@ -66581,8 +66582,9 @@ function runLint(lintPath, patchPath) {
|
||||||
.map((arg) => arg.split(`=`)[0])
|
.map((arg) => arg.split(`=`)[0])
|
||||||
.filter((arg) => arg.startsWith(`-`))
|
.filter((arg) => arg.startsWith(`-`))
|
||||||
.map((arg) => arg.replace(/^-+/, ``)));
|
.map((arg) => arg.replace(/^-+/, ``)));
|
||||||
if (userArgNames.has(`out-format`)) {
|
if (userArgNames.has(`out-format`) && !allowExtraOutFormatArgs) {
|
||||||
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
|
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a
|
||||||
|
future version (set 'allow-extra-out-format-args' input to true to override)`);
|
||||||
}
|
}
|
||||||
addedArgs.push(`--out-format=github-actions`);
|
addedArgs.push(`--out-format=github-actions`);
|
||||||
if (patchPath) {
|
if (patchPath) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue