From ad6a4306f432480960a74b822dd19788b3a05e0f Mon Sep 17 00:00:00 2001 From: viktigpetterr Date: Tue, 16 May 2023 17:16:05 +0200 Subject: [PATCH] Clean path to be able to walk empty string path in meta_file_finder.go --- internal/resolution/pm/gradle/meta_file_finder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/resolution/pm/gradle/meta_file_finder.go b/internal/resolution/pm/gradle/meta_file_finder.go index e59bb57a..5eb0f914 100644 --- a/internal/resolution/pm/gradle/meta_file_finder.go +++ b/internal/resolution/pm/gradle/meta_file_finder.go @@ -44,8 +44,9 @@ func (finder MetaFileFinder) Find(paths []string) (map[string]string, map[string settingsMap := map[string]string{} gradlewMap := map[string]string{} for _, rootPath := range paths { + cleanRootPath := filepath.Clean(rootPath) err := finder.filepath.Walk( - rootPath, + cleanRootPath, func(path string, fileInfo os.FileInfo, err error) error { if err != nil {