Skip to content

Commit 7d73b40

Browse files
committed
replace release by mod.
1 parent 15c5c6a commit 7d73b40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ run:
5151
# If invoked with -mod=vendor, the go command assumes that the vendor
5252
# directory holds the correct copies of dependencies and ignores
5353
# the dependency descriptions in go.mod.
54-
modules-download-mode: readonly|release|vendor
54+
modules-download-mode: readonly|mod|vendor
5555

5656
# Allow multiple parallel golangci-lint instances running.
5757
# If false (default) - golangci-lint acquires file lock on start.

pkg/lint/load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (cl *ContextLoader) makeBuildFlags() ([]string, error) {
104104
mod := cl.cfg.Run.ModulesDownloadMode
105105
if mod != "" {
106106
// go help modules
107-
allowedMods := []string{"release", "readonly", "vendor"}
107+
allowedMods := []string{"mod", "readonly", "vendor"}
108108
var ok bool
109109
for _, am := range allowedMods {
110110
if am == mod {

0 commit comments

Comments
 (0)