Add built dist files

This commit is contained in:
chainchad 2022-12-02 14:45:55 -05:00 committed by Fernandez Ludovic
parent 4601e576f2
commit de5e6fe60a
2 changed files with 8 additions and 4 deletions

View file

@ -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
View file

@ -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) {