File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ func findGorootModules(t *testing.T) []gorootModule {
454454if err != nil {
455455return err
456456}
457- if info .IsDir () && (info .Name () == "vendor" || info .Name () == "testdata" ) {
457+ if info .IsDir () && path != root && (info .Name () == "vendor" || info .Name () == "testdata" ) {
458458return filepath .SkipDir
459459}
460460if info .IsDir () && path == filepath .Join (testenv .GOROOT (t ), "pkg" ) {
@@ -465,7 +465,7 @@ func findGorootModules(t *testing.T) []gorootModule {
465465// running time of this test anyway.)
466466return filepath .SkipDir
467467}
468- if info .IsDir () && (strings .HasPrefix (info .Name (), "_" ) || strings .HasPrefix (info .Name (), "." )) {
468+ if info .IsDir () && path != root && (strings .HasPrefix (info .Name (), "_" ) || strings .HasPrefix (info .Name (), "." )) {
469469// _ and . prefixed directories can be used for internal modules
470470// without a vendor directory that don't contribute to the build
471471// but might be used for example as code generators.
You can’t perform that action at this time.
0 commit comments