Skip to content

Commit 54ab6c5

Browse files
committed
Add built dist files
1 parent 137e0d2 commit 54ab6c5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/post_run/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67716,15 +67716,17 @@ function runLint(lintPath, patchPath) {
6771667716
printOutput(res);
6771767717
}
6771867718
const userArgs = core.getInput(`args`);
67719+
const allowExtraOutFormatArgs = core.getInput(`allow-extra-out-format-args`);
6771967720
const addedArgs = [];
6772067721
const userArgNames = new Set(userArgs
6772167722
.trim()
6772267723
.split(/\s+/)
6772367724
.map((arg) => arg.split(`=`)[0])
6772467725
.filter((arg) => arg.startsWith(`-`))
6772567726
.map((arg) => arg.replace(/^-+/, ``)));
67726-
if (userArgNames.has(`out-format`)) {
67727-
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
67727+
if (userArgNames.has(`out-format`) && !allowExtraOutFormatArgs) {
67728+
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a
67729+
future version (set 'allow-extra-out-format-args' input to true to override)`);
6772867730
}
6772967731
addedArgs.push(`--out-format=github-actions`);
6773067732
if (patchPath) {

dist/run/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67716,15 +67716,17 @@ function runLint(lintPath, patchPath) {
6771667716
printOutput(res);
6771767717
}
6771867718
const userArgs = core.getInput(`args`);
67719+
const allowExtraOutFormatArgs = core.getInput(`allow-extra-out-format-args`);
6771967720
const addedArgs = [];
6772067721
const userArgNames = new Set(userArgs
6772167722
.trim()
6772267723
.split(/\s+/)
6772367724
.map((arg) => arg.split(`=`)[0])
6772467725
.filter((arg) => arg.startsWith(`-`))
6772567726
.map((arg) => arg.replace(/^-+/, ``)));
67726-
if (userArgNames.has(`out-format`)) {
67727-
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a future`);
67727+
if (userArgNames.has(`out-format`) && !allowExtraOutFormatArgs) {
67728+
throw new Error(`please, don't change out-format for golangci-lint: it can be broken in a
67729+
future version (set 'allow-extra-out-format-args' input to true to override)`);
6772867730
}
6772967731
addedArgs.push(`--out-format=github-actions`);
6773067732
if (patchPath) {

0 commit comments

Comments
 (0)