This changes the way we identify projects in a multi module build. We have been using names of projects but because names can be duplicated, we want to use paths.
This is a fix for customers' issue, where seeing two projects with the same name, Snyk overwrites the results of scanning one project with the other when using --file parameter.
This change would break the way how --sub-project parameter works currently (it uses names) so we included a workaround. The issue with duplicate names will persist in this case. When there are duplicate names we will recommend using --file.
What this does
This changes the way we identify projects in a multi module build. We have been using names of projects but because names can be duplicated, we want to use paths. This is a fix for customers' issue, where seeing two projects with the same name, Snyk overwrites the results of scanning one project with the other when using
--file
parameter. This change would break the way how--sub-project
parameter works currently (it uses names) so we included a workaround. The issue with duplicate names will persist in this case. When there are duplicate names we will recommend using--file
.