Don't clean sub directories if Tech not supporting Multi Module #255
+68
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
dev
branch.go vet ./...
.go fmt ./...
.We support multi-module projects for the following technologies:
Maven
,Gradle
,Nuget
andDotnet
Example of Multi-Module Project Structure
Consider the following project structure:
In this case, we will detect the following targets:
project-root
(Maven)project-root/module2
(Gradle)While detecting the dependencies, the dependencies from
project-root/module1
will be included in the dependency tree of the parent module (project-root
). Therefore, all Maven dependencies inmodule1
will be incorporated into the analysis.Support for Other Technologies
For other technologies, such as NPM and Go , we do not support a multi-module structure, but we still clean subdirectories that contain the same type of technology.
This PR addresses the issues associated with these technologies and improves the dependency detection process.
Consider the following project structure:
The following targets will be detected:
project-root
(Npm)project-root
(Go)project-root/directory
(Npm)While we do not support multi-module structures for certain technologies, we ensure that subdirectories are effectively cleaned based on their respective technology (for example, NPM ).