diff --git a/internal/cli/run.go b/internal/cli/run.go index 0976fc84..408903d9 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -259,7 +259,12 @@ func (r *Runtime) mergeConfig(v *viper.Viper) (*print.Config, error) { func (r *Runtime) findSubmodules() ([]module, error) { dir := filepath.Join(r.rootDir, r.config.Recursive.Path) - if _, err := os.Stat(dir); os.IsNotExist(err) { + if _, err := os.Stat(dir); err != nil { + + if os.IsNotExist(err) { + return []module{}, nil + } + return nil, err }