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
// 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