Skip to content

Commit

Permalink
Unset GO111MODULE in test
Browse files Browse the repository at this point in the history
In Debian packaging system, GO111MODULE is set to off. This causes
various test failures due to dialog message mismatch.
  • Loading branch information
zhsj committed Aug 13, 2024
1 parent 06d3e3e commit f6db183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/lint/testutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func Run(t *testing.T, a *lint.Analyzer) {
cfg := &packages.Config{
Dir: dir,
Tests: true,
Env: append(os.Environ(), "GOPROXY=off", "GOFLAGS=-mod=vendor"),
Env: append(os.Environ(), "GOPROXY=off", "GOFLAGS=-mod=vendor", "GO111MODULE="),
Overlay: map[string][]byte{
"go.mod": []byte("module example.com\ngo " + strings.TrimPrefix(vers, "go")),
},
Expand Down

0 comments on commit f6db183

Please sign in to comment.