| 1 |
From: Shengjing Zhu <[email protected]> |
| 2 |
Date: Tue, 21 Nov 2023 04:22:48 +0800 |
| 3 |
Subject: Fix typo GO111MODULES -> GO111MODULE |
| 4 |
|
| 5 |
--- |
| 6 |
go/ssa/builder_test.go | 3 +++ |
| 7 |
internal/refactor/inline/everything_test.go | 2 +- |
| 8 |
internal/refactor/inline/inline_test.go | 2 +- |
| 9 |
3 files changed, 5 insertions(+), 2 deletions(-) |
| 10 |
|
| 11 |
diff --git a/go/ssa/builder_test.go b/go/ssa/builder_test.go |
| 12 |
index adb04cd..062267e 100644 |
| 13 |
--- a/go/ssa/builder_test.go |
| 14 |
+++ b/go/ssa/builder_test.go |
| 15 |
@@ -1114,6 +1114,9 @@ func TestGenericAliases(t *testing.T) { |
| 16 |
|
| 17 |
cmd := exec.Command(os.Args[0], "-test.run=TestGenericAliases") |
| 18 |
cmd.Env = append(os.Environ(), "GENERICALIASTEST_CHILD=1") |
| 19 |
+ cmd.Env = append(cmd.Env, |
| 20 |
+ "GO111MODULE=on", |
| 21 |
+ ) |
| 22 |
if testenv.Go1Point() == 23 { |
| 23 |
cmd.Env = append(cmd.Env, "GOEXPERIMENT=aliastypeparams") |
| 24 |
} |
| 25 |
diff --git a/internal/refactor/inline/everything_test.go b/internal/refactor/inline/everything_test.go |
| 26 |
index aecaa7d..4f27de3 100644 |
| 27 |
--- a/internal/refactor/inline/everything_test.go |
| 28 |
+++ b/internal/refactor/inline/everything_test.go |
| 29 |
@@ -60,7 +60,7 @@ func TestEverything(t *testing.T) { |
| 30 |
cfg := &packages.Config{ |
| 31 |
Mode: packages.LoadAllSyntax, |
| 32 |
Env: append(os.Environ(), |
| 33 |
|
| 34 |
+ "GO111MODULE=on", |
| 35 |
"GOPATH=", |
| 36 |
"GOWORK=off", |
| 37 |
"GOPROXY=off"), |
| 38 |
diff --git a/internal/refactor/inline/inline_test.go b/internal/refactor/inline/inline_test.go |
| 39 |
index 9d99086..9fa9eef 100644 |
| 40 |
--- a/internal/refactor/inline/inline_test.go |
| 41 |
+++ b/internal/refactor/inline/inline_test.go |
| 42 |
@@ -114,7 +114,7 @@ func TestData(t *testing.T) { |
| 43 |
Dir: dir, |
| 44 |
Mode: packages.LoadAllSyntax, |
| 45 |
Env: append(os.Environ(), |
| 46 |
|
| 47 |
+ "GO111MODULE=on", |
| 48 |
"GOPATH=", |
| 49 |
"GOWORK=off", |
| 50 |
"GOPROXY=off"), |