From 980bf5365c8ad32a0305843f6abbb756b69d806e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 25 May 2020 23:24:57 +0100 Subject: fix(nix/buildGo): Do not silently ignore filepath.Walk() errors --- nix/buildGo/external/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nix/buildGo') diff --git a/nix/buildGo/external/main.go b/nix/buildGo/external/main.go index aa4a813d32..0bb9fc79ae 100644 --- a/nix/buildGo/external/main.go +++ b/nix/buildGo/external/main.go @@ -44,6 +44,10 @@ func findGoDirs(at string) ([]string, error) { dirSet := make(map[string]bool) err := filepath.Walk(at, func(path string, info os.FileInfo, err error) error { + if err != nil { + return err + } + name := info.Name() // Skip folders that are guaranteed to not be relevant if info.IsDir() && (name == "testdata" || name == ".git") { -- cgit 1.4.1