-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Crash when using -rs with referenced project that has multiple target frameworks #830
Comments
Thanks for the extensive groundwork, I expect that I will be able to provide a fix for this quickly.
The |
Thanks for the quick response and for helping out!
That would be awesome and extremely helpful! Thanks again 👍 |
…ultiple targets with different dependencies. Signed-off-by: MTsfoni <mibau89@gmail.com>
Please try with: 3.0.5 As a side note, I run the example with 2.10.0 and while it doesn't crash, the result is not entirely correct. It included both version of the double dependency in the SBOM and the dependency graph, while de facto only one of them gets delivered with the software. The -tfm argument might help you make SBOMs that are more correct in cases like the test case. The only good solution I could come up now is to just ignore the second package in the dependency graph - that's everything but perfect. It shouldn't crash, however. |
Works good, thank you for your quick help! I will play arround with the -tfm. But i will have to take time for that, our pipelines are many and they are quite big 😄 |
We encountered an issue where the software crashes when building the SBOM.
In version 3.0.4 when using the -rs parameter.
Our project setup is as follows:
ProjectA references ProjectB, which has two target frameworks (dotnet 8 and net472).
We think the issue has to do with the fact that ProjectB uses a NuGet Package, which probably gets added two times (because of the two target frameworks).
@mtsfoni This is what we mentioned in the wrongly opened pull request.
We have created an example project that triggers the crash.
https://github.com/ag-lls/CrashReproduction
When running the tool like this:
dotnet CycloneDX "ConsoleApp1.csproj" -j -f sbom.json -rs -ipr -ed -t -sv 24.1 -egl
We get the crash:
Without the -rs parameter the generation doesn't crash.
The text was updated successfully, but these errors were encountered: