From d47b6f5e481357831d6899e5802cbee3c8308d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Mon, 14 Oct 2019 21:21:37 +0200 Subject: [PATCH] Exposed modules-download-mode as a command line option (#781) * Exposed modules-download-mode as a command line option * Split line into two. * Regenerated README.md file --- pkg/commands/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/commands/run.go b/pkg/commands/run.go index cc2dadf5b0a6..a3531c6d5a3c 100644 --- a/pkg/commands/run.go +++ b/pkg/commands/run.go @@ -82,6 +82,8 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is // Run config rc := &cfg.Run + fs.StringVar(&rc.ModulesDownloadMode, "modules-download-mode", "", + "Modules download mode. If not empty, passed as -mod= to go tools") fs.IntVar(&rc.ExitCodeIfIssuesFound, "issues-exit-code", exitcodes.IssuesFound, wh("Exit code when issues were found")) fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags"))