fix(nix/buildGo): Do not silently ignore filepath.Walk() errors
This commit is contained in:
parent
14b52848f8
commit
980bf5365c
1 changed files with 4 additions and 0 deletions
4
nix/buildGo/external/main.go
vendored
4
nix/buildGo/external/main.go
vendored
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue