oss-review-toolkit / ort

A suite of tools to automate software compliance checks.
https://oss-review-toolkit.org
Apache License 2.0
1.59k stars 309 forks source link

package.spdx.yml are discarded in MoveTK project #4251

Closed tsteenbe closed 3 years ago

tsteenbe commented 3 years ago

Previously for the MoveTK project (https://github.com/heremaps/movetk) the report would show SpdxDocumentFile entries and now the Analyzer logs shows the below:

10:11:59 08:11:59.287 [main] INFO  org.ossreviewtoolkit.analyzer.managers.SpdxDocumentFile - Discarded the following non-project SPDX files: '/workspace/project/src/include/third_party/miniball/package.spdx.yml', '/workspace/project/src/include/third_party/boost_geometry/package.spdx.yml', '/workspace/project/third_party/Catch2/package.spdx.yml', '/workspace/project/third_party/GsTL/package.spdx.yml'

This regression in functionality was introduced in https://github.com/oss-review-toolkit/ort/pull/3846 but per the https://github.com/spdx/spdx-spec/issues/439 this should work.

tsteenbe commented 3 years ago

MoveTK is just the public example - per spec for this it's not required to have project.spdx.yml for a project. Requiring to have project.spdx.yml would break some of our and other ORT user's use cases.

neubs-bsi commented 3 years ago

From discussion with @tsteenbe on Friday: Idea:

EDIT: such a function exists already in ### "mapDefinitionFiles()" -> mapping will just be adapted to above described desired result.

neubs-bsi commented 3 years ago

@tsteenbe do you by any chance still have an analyzer result file from an old MoveTK project that shows how you would expect the results to look?

tsteenbe commented 3 years ago

@neubs-bsi Sure, here you go movetk-november-30-2020-analyzer-result.json.zip