fix(spdxdocumentfile): Get VcsInfo from downloadLocation by default - #12253
fix(spdxdocumentfile): Get VcsInfo from downloadLocation by default#12253losmateusz1 wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12253 +/- ##
=========================================
Coverage 58.87% 58.87%
Complexity 1841 1841
=========================================
Files 362 362
Lines 13657 13657
Branches 1414 1414
=========================================
Hits 8041 8041
Misses 5106 5106
Partials 510 510
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fc29e74 to
9664353
Compare
|
Please provide a rationale in the commit message why it should be done that way. I guess there was a reason for the current code to work that way, also see 5294db5, which you seem to be basically reverting. Also note that there probably is no single "right way" to do it, as it might depend on the use-case. Again, also see #8788. |
967d4c9 to
5ef79c8
Compare
If downloadLocation is set to vcs sources, it should always be in use first, as in many cases spdx files are being scanned from dedicated repositories that don't contain sources of declared components or project that is being scanned with spdx manager. Getting vcs source information from project dir will be neccessary in specific cases, where some internally developed dependencies are in use during scan. Signed-off-by: Mateusz Los <extern.mateusz.los@cariad.technology>
5ef79c8 to
f7eab5d
Compare
This is exactly the disputable part of the rationale, I believe, as originally the SPDX analyzer was designed to describe projects (incl. their sources) that do not use any of the known package managers. So I believe we cannot merge this without breaking the experience for existing users. Esp. @MarcelBochtler may want to comment. |
|
ok, I still think that it's a little confusing that by default, ORT will always ignore downloadLocation when project VCS info is detectable, in practice there won't be possibility to get this information from downloadLocation, because in most cases you scan a project that was cloned from some repository, so better idea seems to use downloadLocation if there is any, and if all sources needs to be downloaded from project dir, downloadLocation field could be set to project repo for all components. |
Also pinging @oheger-bosch, FYI. |
No description provided.