diff --git a/.golangci.yml b/.golangci.yml index 65ada1db..31ea9c0d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - deadline: 2m + timeout: 2m linters-settings: govet: diff --git a/pkg/goenvbuild/ensuredeps/ensure.go b/pkg/goenvbuild/ensuredeps/ensure.go index e172ce59..d18e53ae 100644 --- a/pkg/goenvbuild/ensuredeps/ensure.go +++ b/pkg/goenvbuild/ensuredeps/ensure.go @@ -161,7 +161,7 @@ func (r *Runner) syncDeps(ctx context.Context, repoName string) error { func (r Runner) checkDeps(ctx context.Context, repoName string) error { r.log.Infof("Checking deps...") - out, _ := r.cr.Run(ctx, "golangci-lint", "run", "--no-config", "--disable-all", "-E", "typecheck", "--deadline=5m") + out, _ := r.cr.Run(ctx, "golangci-lint", "run", "--no-config", "--disable-all", "-E", "typecheck", "--timeout=5m") lines := strings.Split(out, "\n") for _, line := range lines { line = strings.TrimSpace(strings.ToLower(line)) diff --git a/pkg/goenvbuild/preparer.go b/pkg/goenvbuild/preparer.go index 3c98a60a..840de44f 100644 --- a/pkg/goenvbuild/preparer.go +++ b/pkg/goenvbuild/preparer.go @@ -282,7 +282,7 @@ func parseVersion(v string) (*version, error) { func (p Preparer) runGolangciLint(ctx context.Context, sg *result.StepGroup, runner *command.StreamingRunner) error { cmd := "golangci-lint" - args := []string{"run", "-v", "--deadline=5m"} + args := []string{"run", "-v", "--timeout=5m"} sg.AddStepCmd(cmd, args...) _, err := runner.Run(ctx, cmd, args...) return err diff --git a/pkg/worker/analyze/linters/golinters/golangci_lint.go b/pkg/worker/analyze/linters/golinters/golangci_lint.go index d32dd36c..95f64303 100644 --- a/pkg/worker/analyze/linters/golinters/golangci_lint.go +++ b/pkg/worker/analyze/linters/golinters/golangci_lint.go @@ -32,7 +32,7 @@ func (g GolangciLint) Run(ctx context.Context, sg *logresult.StepGroup, exec exe "run", "--out-format=json", "--issues-exit-code=0", - "--deadline=5m", + "--timeout=5m", "--new=false", "--new-from-rev=", "--new-from-patch=" + g.PatchPath,