-
Notifications
You must be signed in to change notification settings - Fork 356
fix(model): Keep the root project under all circumstances #11042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(model): Keep the root project under all circumstances #11042
Conversation
If a repository has monorepo-like structures, possibly with sub-projects declaring dependencies to the root-project, it may happen that the root-project is removed when generating the SPDX report, as it is a dependency of a sub-project and one does not want to include it. Signed-off-by: klw1imb <wolfgang.klenk2@bosch.com>
|
@sschuberth @fviernau @mnonnenmacher I don't know how to continue here, what is the best way to solve it. In the web app report, I see the following dependencies: The debug output that I added looks as follows: Looking at the debug output, the item with name=rd-management and namespace="" should not be interpreted as sub-project and deleted, because it is the root-project. Can you advise what could be done, either a code change - or tell the customer to fix the dependencies? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11042 +/- ##
=========================================
Coverage 57.42% 57.42%
- Complexity 1701 1703 +2
=========================================
Files 346 346
Lines 12835 12835
Branches 1215 1215
=========================================
Hits 7370 7370
Misses 4998 4998
Partials 467 467
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Do I understand correctly that Also, is |
Yes, looks like, doesn't it. I currently think this is the source of evil, because of this the algorithm thinks this
Defined in Gradle. You can see it in the output of Ahh ... maybe there is a way to exclude every scope except |
It may not be the most appropriate solution to this problem and also only fix a (this) special case: A more general solution could be, to reconsider whether this function which removes "sub-projects" actually has a bug.
Is the scope created by some Gradle plugin or how exactly? And what does it contain? (The union of all other scopes?) |

If a repository has monorepo-like structures, possibly with sub-projects declaring dependencies to the root-project, it may happen that the root-project is removed when generating the SPDX report, as it is a dependency of a sub-project and one does not want to include it.