From 2e30995bfceac65c63af3fcc3f704e6c1f4d0bd8 Mon Sep 17 00:00:00 2001 From: suhasgumma Date: Tue, 15 Nov 2022 10:22:04 +0530 Subject: [PATCH] Relative Path When scanning Local Repos --- core/pkg/resourcehandler/filesloader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/pkg/resourcehandler/filesloader.go b/core/pkg/resourcehandler/filesloader.go index 933e392b..77601c5c 100644 --- a/core/pkg/resourcehandler/filesloader.go +++ b/core/pkg/resourcehandler/filesloader.go @@ -103,6 +103,8 @@ func getResourcesFromPath(path string) (map[string]reporthandling.Source, []work gitRepo, err := cautils.NewLocalGitRepository(path) if err == nil && gitRepo != nil { repoRoot, _ = gitRepo.GetRootDir() + } else { + repoRoot, _ = filepath.Abs(path) } // load resource from local file system