mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-15 15:16:30 +00:00
chore: generate
This commit is contained in:
parent
17c5e0719e
commit
b7ad2665fc
2 changed files with 8 additions and 8 deletions
8
dist/post_run/index.js
generated
vendored
8
dist/post_run/index.js
generated
vendored
|
|
@ -93982,7 +93982,7 @@ async function prepareEnv() {
|
||||||
const binPath = await prepareLint();
|
const binPath = await prepareLint();
|
||||||
const patchPath = await fetchPatch();
|
const patchPath = await fetchPatch();
|
||||||
core.info(`Prepared env in ${Date.now() - startedAt}ms`);
|
core.info(`Prepared env in ${Date.now() - startedAt}ms`);
|
||||||
return { binPath: binPath, patchPath };
|
return { binPath, patchPath };
|
||||||
}
|
}
|
||||||
const printOutput = (res) => {
|
const printOutput = (res) => {
|
||||||
if (res.stdout) {
|
if (res.stdout) {
|
||||||
|
|
@ -93992,10 +93992,10 @@ const printOutput = (res) => {
|
||||||
core.info(res.stderr);
|
core.info(res.stderr);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
async function runLint(lintPath, patchPath) {
|
async function runLint(binPath, patchPath) {
|
||||||
const debug = core.getInput(`debug`);
|
const debug = core.getInput(`debug`);
|
||||||
if (debug.split(`,`).includes(`cache`)) {
|
if (debug.split(`,`).includes(`cache`)) {
|
||||||
const res = await execShellCommand(`${lintPath} cache status`);
|
const res = await execShellCommand(`${binPath} cache status`);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
let userArgs = core.getInput(`args`);
|
let userArgs = core.getInput(`args`);
|
||||||
|
|
@ -94068,7 +94068,7 @@ async function runLint(lintPath, patchPath) {
|
||||||
}
|
}
|
||||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||||
}
|
}
|
||||||
const cmd = `${lintPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
||||||
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||||
const startedAt = Date.now();
|
const startedAt = Date.now();
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
8
dist/run/index.js
generated
vendored
8
dist/run/index.js
generated
vendored
|
|
@ -93982,7 +93982,7 @@ async function prepareEnv() {
|
||||||
const binPath = await prepareLint();
|
const binPath = await prepareLint();
|
||||||
const patchPath = await fetchPatch();
|
const patchPath = await fetchPatch();
|
||||||
core.info(`Prepared env in ${Date.now() - startedAt}ms`);
|
core.info(`Prepared env in ${Date.now() - startedAt}ms`);
|
||||||
return { binPath: binPath, patchPath };
|
return { binPath, patchPath };
|
||||||
}
|
}
|
||||||
const printOutput = (res) => {
|
const printOutput = (res) => {
|
||||||
if (res.stdout) {
|
if (res.stdout) {
|
||||||
|
|
@ -93992,10 +93992,10 @@ const printOutput = (res) => {
|
||||||
core.info(res.stderr);
|
core.info(res.stderr);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
async function runLint(lintPath, patchPath) {
|
async function runLint(binPath, patchPath) {
|
||||||
const debug = core.getInput(`debug`);
|
const debug = core.getInput(`debug`);
|
||||||
if (debug.split(`,`).includes(`cache`)) {
|
if (debug.split(`,`).includes(`cache`)) {
|
||||||
const res = await execShellCommand(`${lintPath} cache status`);
|
const res = await execShellCommand(`${binPath} cache status`);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
}
|
}
|
||||||
let userArgs = core.getInput(`args`);
|
let userArgs = core.getInput(`args`);
|
||||||
|
|
@ -94068,7 +94068,7 @@ async function runLint(lintPath, patchPath) {
|
||||||
}
|
}
|
||||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||||
}
|
}
|
||||||
const cmd = `${lintPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
||||||
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||||
const startedAt = Date.now();
|
const startedAt = Date.now();
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue