about summary refs log tree commit diff
path: root/nix/buildGo
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildGo')
-rw-r--r--nix/buildGo/external/main.go4
1 files changed, 4 insertions, 0 deletions
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") {