Skip to content

Commit 516152d

Browse files
zhsjdominikh
authored andcommitted
analysis/lint/testutil: unset GO111MODULE in test
In Debian packaging system, GO111MODULE is set to off. This causes various test failures due to dialog message mismatch. (cherry picked from commit 767128c)
1 parent d6ea187 commit 516152d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analysis/lint/testutil/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func Run(t *testing.T, a *lint.Analyzer) {
9393
cfg := &packages.Config{
9494
Dir: dir,
9595
Tests: true,
96-
Env: append(os.Environ(), "GOPROXY=off", "GOFLAGS=-mod=vendor"),
96+
Env: append(os.Environ(), "GOPROXY=off", "GOFLAGS=-mod=vendor", "GO111MODULE="),
9797
Overlay: map[string][]byte{
9898
"go.mod": []byte("module example.com\ngo " + strings.TrimPrefix(vers, "go")),
9999
},

0 commit comments

Comments
 (0)