From a2f26075c898e57874eede7f9a2671eea797e948 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 16 Jun 2020 22:34:59 -0700 Subject: [PATCH] Don't typecheck directories that start with _ Go ignores them, so should we. --- test/typecheck/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/typecheck/main.go b/test/typecheck/main.go index 9a7f4e34783..12c7a9ee6e7 100644 --- a/test/typecheck/main.go +++ b/test/typecheck/main.go @@ -266,7 +266,7 @@ func (c *collector) handlePath(path string, info os.FileInfo, err error) error { } if info.IsDir() { // Ignore hidden directories (.git, .cache, etc) - if len(path) > 1 && path[0] == '.' { + if len(path) > 1 && (path[0] == '.' || path[0] == '_') { return filepath.SkipDir } for _, dir := range c.ignoreDirs {