-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support providing a solution filter #853
Comments
Can you describe what you understand under "solution filter". Can you describe a case where using a project- or a solution-file is not sufficient for selecting relevant projects? What is it you are trying to achieve? Is this an A-B Problem? |
It's not an issue, it's just an improvement that would assist people that are already using solution filters, but I'll proceed to describe my use case. I currently have a monolithic solution containing code for many target architectures and operating systems. I have CI/CD pipelines for each target since the code and dependencies cannot be compiled on just any platform. In both Visual Studio and Rider, you can create a Project Filter from a solution, this is basically a JSON file that describes both the solution and the projects to include (thus filtering the ones not included). I would like the ability to use a solution filter as I currently use it for all relevant Also, in my opinion, the solution filter format is much simpler then a solution file to both consume and maintain manually. For some information on filters, see here As I say, currently, this is how I separate code to progress through my pipelines per target. |
So I assume you use the cyclonedx tool on the solution-file rather than the specific project-file? When a solution file is targeted, the cyclonedx tool basically creates a bom for each project inside the solution and aggregates those mindlessly. This is not a very clever, smart, or even correct way to build a bom. If there are different output projects that have different versions of dependencies, it gets super messy. Yes, solution filters could reduce that problem. However, there is an explicit way to get exactly what one needs and want: That being said. I am not absolute against support for solution filters, however I see calling the tool with a solution file more as a comfortable shortcut than an accurate approach of generating a bom. A program is normal one project (with dependencies); a solution is a bundle of many (usually related) projects. Long Story short: Would accept a proper PR, but won't do it by myself as I don't see it really necessary. |
Ok, thanks, I'll put together a PR when I have the time. |
I faced that, my workaround was creating a sln from the slnf with an small powershell script. But, in the end, I agree it makes more sense calling cyclone tool pointing to a project instead of a full solution.
|
This issue is stale because it has been open for 3 months with no activity. |
It would be nice if instead of the current supported file type, we could provide solution filters to the tool. This would allow developers to hand pick the projects that they wish to be part of the BOM.
The text was updated successfully, but these errors were encountered: