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
e5a31d123f
commit
f85f158c75
2 changed files with 8 additions and 2 deletions
5
dist/post_run/index.js
generated
vendored
5
dist/post_run/index.js
generated
vendored
|
|
@ -93757,8 +93757,10 @@ async function goInstall(versionConfig) {
|
||||||
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`);
|
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`);
|
||||||
const startedAt = Date.now();
|
const startedAt = Date.now();
|
||||||
const options = { env: { ...process.env, CGO_ENABLED: "1" } };
|
const options = { env: { ...process.env, CGO_ENABLED: "1" } };
|
||||||
|
// TODO(ldez): it should be updated for v2.
|
||||||
const exres = await execShellCommand(`go install github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
const exres = await execShellCommand(`go install github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
||||||
printOutput(exres);
|
printOutput(exres);
|
||||||
|
// TODO(ldez): it should be updated for v2.
|
||||||
const res = await execShellCommand(`go install -n github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
const res = await execShellCommand(`go install -n github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
// The output of `go install -n` when the binary is already installed is `touch <path_to_the_binary>`.
|
// The output of `go install -n` when the binary is already installed is `touch <path_to_the_binary>`.
|
||||||
|
|
@ -94416,7 +94418,8 @@ async function findLintVersion(mode) {
|
||||||
core.info(`Finding needed golangci-lint version...`);
|
core.info(`Finding needed golangci-lint version...`);
|
||||||
if (mode == install_1.InstallMode.GoInstall) {
|
if (mode == install_1.InstallMode.GoInstall) {
|
||||||
const v = core.getInput(`version`);
|
const v = core.getInput(`version`);
|
||||||
// TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0)
|
// TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0).
|
||||||
|
// TODO(ldez): AssetURL should be updated for v2.
|
||||||
return { TargetVersion: v ? v : "latest", AssetURL: "github.com/golangci/golangci-lint" };
|
return { TargetVersion: v ? v : "latest", AssetURL: "github.com/golangci/golangci-lint" };
|
||||||
}
|
}
|
||||||
const reqLintVersion = getRequestedLintVersion();
|
const reqLintVersion = getRequestedLintVersion();
|
||||||
|
|
|
||||||
5
dist/run/index.js
generated
vendored
5
dist/run/index.js
generated
vendored
|
|
@ -93757,8 +93757,10 @@ async function goInstall(versionConfig) {
|
||||||
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`);
|
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`);
|
||||||
const startedAt = Date.now();
|
const startedAt = Date.now();
|
||||||
const options = { env: { ...process.env, CGO_ENABLED: "1" } };
|
const options = { env: { ...process.env, CGO_ENABLED: "1" } };
|
||||||
|
// TODO(ldez): it should be updated for v2.
|
||||||
const exres = await execShellCommand(`go install github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
const exres = await execShellCommand(`go install github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
||||||
printOutput(exres);
|
printOutput(exres);
|
||||||
|
// TODO(ldez): it should be updated for v2.
|
||||||
const res = await execShellCommand(`go install -n github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
const res = await execShellCommand(`go install -n github.com/golangci/golangci-lint/cmd/golangci-lint@${versionConfig.TargetVersion}`, options);
|
||||||
printOutput(res);
|
printOutput(res);
|
||||||
// The output of `go install -n` when the binary is already installed is `touch <path_to_the_binary>`.
|
// The output of `go install -n` when the binary is already installed is `touch <path_to_the_binary>`.
|
||||||
|
|
@ -94416,7 +94418,8 @@ async function findLintVersion(mode) {
|
||||||
core.info(`Finding needed golangci-lint version...`);
|
core.info(`Finding needed golangci-lint version...`);
|
||||||
if (mode == install_1.InstallMode.GoInstall) {
|
if (mode == install_1.InstallMode.GoInstall) {
|
||||||
const v = core.getInput(`version`);
|
const v = core.getInput(`version`);
|
||||||
// TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0)
|
// TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0).
|
||||||
|
// TODO(ldez): AssetURL should be updated for v2.
|
||||||
return { TargetVersion: v ? v : "latest", AssetURL: "github.com/golangci/golangci-lint" };
|
return { TargetVersion: v ? v : "latest", AssetURL: "github.com/golangci/golangci-lint" };
|
||||||
}
|
}
|
||||||
const reqLintVersion = getRequestedLintVersion();
|
const reqLintVersion = getRequestedLintVersion();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue