Open nnobelis opened 1 year ago
I think the problem is that the
SpdxDocumentFile
package manager find the project.spdx.yml of the mydependency package and then decides its a project, without any regards to thedownloadLocation
of the package:
This sounds related to https://github.com/oss-review-toolkit/ort/issues/5483.
I read #5483 and I am not sure this apply here, has mydependency
has its own project.spdx.yml
, not a package.spdx.yml
.
@tsteenbe what do you think ?
@nnobelis I think the example for mydependency
is not complete, to be recognized as a project the project.spdx.yml
needs to contain either >1 packages or an external document reference:
https://github.com/oss-review-toolkit/ort/blob/7c1cb2ec76b06ce66793962fdc91d5599ce3733a/analyzer/src/main/kotlin/managers/SpdxDocumentFile.kt#L99-L105
@nnobelis I think the example for
mydependency
is not complete, to be recognized as a project theproject.spdx.yml
needs to contain either >1 packages or an external document reference:
Yes of course: there is one additional package in the mydependency
project.spdx.yml
file that I didn't put, as the description was already pretty long.
I had a SPDX-managed repository. This is the
project.spdx.yml
For myapplication,
./external/mydependency
is a Git submodule to themydependency.git
. .gitmodules:Also in
mydependency.git
, there is anotherproject.spdx.yml
:The problem is that when ORT Analyzer runs over
https://repository/myapplication.git
, it generates the following result:Since I am analyzing myapplication, I was expecting to find only one project for myapplication and one package for mydependency. However here I have two projects !
I think the problem is that the
SpdxDocumentFile
package manager find the project.spdx.yml of the mydependency package and then decides its a project, without any regards to thedownloadLocation
of the package: See https://github.com/oss-review-toolkit/ort/blob/0143ab7802d3259b39560aba5215455820256353/analyzer/src/main/kotlin/managers/SpdxDocumentFile.kt#L493