bazelbuild / rules_license

Apache License 2.0
80 stars 28 forks source link

Additional fields for `package_info` rule / `PackageInfo` provider #163

Open adam-azarchs opened 1 month ago

adam-azarchs commented 1 month ago

In the interest of not having everyone invent their own keys to add to ExperimentalMetadataInfo, I'm opening this issue to request a few more standardized fields for the PackageInfo provider.

Current fields, for reference: https://github.com/bazelbuild/rules_license/blob/5b980eaa19dec16c85d8ec5e58c16257c8738ea3/rules/providers.bzl#L55-L58

Additional fields I would like to see are fields which are either commonly provided by package managers and potentially useful when generating reports in some contexts, or are required for some SBOM-like APIs, e.g. GitHub's dependency submission API. I don't much care to bike-shed the names of these fields as long as there's a place to put this information.