We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfb814 commit 3b76bedCopy full SHA for 3b76bed
src/cmd/internal/moddeps/moddeps_test.go
@@ -39,6 +39,14 @@ func findGorootModules(t *testing.T) []gorootModule {
39
if info.Name() == "vendor" || info.Name() == "testdata" {
40
return filepath.SkipDir
41
}
42
+ if path == filepath.Join(runtime.GOROOT(), "pkg") {
43
+ // GOROOT/pkg contains generated artifacts, not source code.
44
+ //
45
+ // In https://golang.org/issue/37929 it was observed to somehow contain
46
+ // a module cache, so it is important to skip. (That helps with the
47
+ // running time of this test anyway.)
48
+ return filepath.SkipDir
49
+ }
50
if info.IsDir() || info.Name() != "go.mod" {
51
return nil
52
0 commit comments