From 3944652a8de96b7a72b39cd6359fe68365b6b714 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 1 Dec 2024 12:32:48 +0200 Subject: [PATCH] Don't clean sub directories if Tech not supporting Multi Module --- utils/techutils/techutils.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/techutils/techutils.go b/utils/techutils/techutils.go index 5ed8e76b..19c2d42a 100644 --- a/utils/techutils/techutils.go +++ b/utils/techutils/techutils.go @@ -647,8 +647,10 @@ func getTechInformationFromWorkingDir(tech Technology, workingDirectoryToIndicat techWorkingDirs[wd] = descriptorsAtWd } } - // Don't allow working directory if sub directory already exists as key for the same technology - techWorkingDirs = cleanSubDirectories(techWorkingDirs) + if tech == Maven || tech == Gradle || tech == Nuget || tech == Dotnet { + // Multi Module - Don't allow working directory if sub directory already exists as key for the same technology + techWorkingDirs = cleanSubDirectories(techWorkingDirs) + } return }