aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/modlegacy/src/new/p1/p1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/modlegacy/src/new/p1/p1.go')
-rw-r--r--src/cmd/go/testdata/modlegacy/src/new/p1/p1.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/modlegacy/src/new/p1/p1.go b/src/cmd/go/testdata/modlegacy/src/new/p1/p1.go
new file mode 100644
index 0000000000..4539f40919
--- /dev/null
+++ b/src/cmd/go/testdata/modlegacy/src/new/p1/p1.go
@@ -0,0 +1,7 @@
+package p1
+
+import _ "old/p2"
+import _ "new/v2"
+import _ "new/v2/p2"
+import _ "new/sub/v2/x/v1/y" // v2 is module, v1 is directory in module
+import _ "new/sub/inner/x" // new/sub/inner/go.mod overrides new/sub/go.mod