You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR changes mockery to not recurse into paths that contain
a `go.mod` submodule. This is to help support monorepos that contain
many modules. In this case, mockery should not be recursing into these
because it causes issues, like in issue #706.
fix deprecations in mkdocs
remove explicit lint step
// Check if our current depth is 0. We do this to skip sub-modules, but not
588
+
// the root module.
589
+
relative, err:=path.RelativeTo(searchRoot)
590
+
iferr!=nil {
591
+
returnstackerr.NewStackErrf(err, "determining distance from search root")
592
+
}
593
+
594
+
iflen(relative.Parts()) !=1 {
595
+
pathLog.Debug().Msg("skipping sub-module")
596
+
returnpathlib.ErrWalkSkipSubtree
597
+
}
598
+
pathLog.Debug().Int("parts_len", len(relative.Parts())).Str("parts", fmt.Sprintf("%v", relative.Parts())).Msg("not skipping module as this is the root path")
0 commit comments