Skip to content

Commit 871e8df

Browse files
committed
Revert "fix: add -mod flag in GOFLAGS."
This reverts commit 96ea41e.
1 parent 5b60600 commit 871e8df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/lint/load.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ func (cl *ContextLoader) makeBuildFlags() ([]string, error) {
116116
return nil, fmt.Errorf("invalid modules download path %s, only (%s) allowed", mod, strings.Join(allowedMods, "|"))
117117
}
118118

119-
// https://github.com/golangci/golangci-lint/issues/1502#issuecomment-752105778
120-
goflags := strings.Fields(os.Getenv("GOFLAGS"))
121-
goflags = append(goflags, fmt.Sprintf("-mod=%s", mod))
122-
_ = os.Setenv("GOFLAGS", strings.Join(goflags, " "))
123-
124119
buildFlags = append(buildFlags, fmt.Sprintf("-mod=%s", cl.cfg.Run.ModulesDownloadMode))
125120
}
126121

0 commit comments

Comments
 (0)