opensbom-generator / parsers

Language and ecosystem parsers
Apache License 2.0
6 stars 10 forks source link

Platform Awareness / Option #25

Open puerco opened 1 year ago

puerco commented 1 year ago

When analyzing the dependencies of projects, the effective dependencies can change based on what platform the build is targeting. In order to cover those cases, we need to be able to do two things from any of the parsers:

  1. Give the parsers a unified way of knowing which platform they are running on and
  2. Create an option to specify the target platform so that each parser can pass a platform slug to the underlying tooling
nishakm commented 1 year ago

Does this need to be templated so those contributing parsers can follow a set pattern?

puerco commented 1 year ago

I'm thinking on adding an options mechanism to the parsers once they are stable. To detect the platform I will add a help function somewhere that they can reuse to get the info.

ba11b0y commented 1 year ago

What if we add