Skip to content

Commit d47b6f5

Browse files
pstibranyjirfag
authored andcommitted
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
1 parent fa69ddf commit d47b6f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/commands/run.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ func initFlagSet(fs *pflag.FlagSet, cfg *config.Config, m *lintersdb.Manager, is
8282

8383
// Run config
8484
rc := &cfg.Run
85+
fs.StringVar(&rc.ModulesDownloadMode, "modules-download-mode", "",
86+
"Modules download mode. If not empty, passed as -mod=<mode> to go tools")
8587
fs.IntVar(&rc.ExitCodeIfIssuesFound, "issues-exit-code",
8688
exitcodes.IssuesFound, wh("Exit code when issues were found"))
8789
fs.StringSliceVar(&rc.BuildTags, "build-tags", nil, wh("Build tags"))

0 commit comments

Comments
 (0)