diff --git a/internal/gps/_testdata/src/disallow/.m1p/a.go b/internal/gps/_testdata/src/dotgodir/.m1p/a.go similarity index 100% rename from internal/gps/_testdata/src/disallow/.m1p/a.go rename to internal/gps/_testdata/src/dotgodir/.m1p/a.go diff --git a/internal/gps/_testdata/src/disallow/.m1p/b.go b/internal/gps/_testdata/src/dotgodir/.m1p/b.go similarity index 100% rename from internal/gps/_testdata/src/disallow/.m1p/b.go rename to internal/gps/_testdata/src/dotgodir/.m1p/b.go diff --git a/internal/gps/pkgtree/pkgtree_test.go b/internal/gps/pkgtree/pkgtree_test.go index e7bb0cf652..f042c2e312 100644 --- a/internal/gps/pkgtree/pkgtree_test.go +++ b/internal/gps/pkgtree/pkgtree_test.go @@ -1073,18 +1073,6 @@ func TestListPackages(t *testing.T) { }, }, }, - "disallow/.m1p": { - P: Package{ - ImportPath: "disallow/.m1p", - CommentPath: "", - Name: "m1p", - Imports: []string{ - "github.com/golang/dep/internal/gps", - "os", - "sort", - }, - }, - }, "disallow/testdata": { P: Package{ ImportPath: "disallow/testdata", @@ -1304,6 +1292,18 @@ func TestListPackages(t *testing.T) { Imports: []string{"sort"}, }, }, + "dotgodir/.m1p": { + P: Package{ + ImportPath: "dotgodir/.m1p", + CommentPath: "", + Name: "m1p", + Imports: []string{ + "github.com/golang/dep/internal/gps", + "os", + "sort", + }, + }, + }, }, }, },