bazel-contrib / SIG-rules-authors

Governance and admin for the rules authors Special Interest Group
https://bazel-contrib.github.io/SIG-rules-authors/
Apache License 2.0
30 stars 12 forks source link

Host `supply-chain` rules #102

Open Yannic opened 4 days ago

Yannic commented 4 days ago

As discussed in the SIG meeting a few weeks ago, we'd like to move license/compliance/provenance rules out of bazelbuild/rules_license and make it owned by the community.

Therefore, we'd like to create bazel-contrib/supply-chain to host the rules and providers for declaring package metadata like licenses.

This will be a new GitHub repo with multiple bzlmod repos (looking to start with 2, but planning to extend over time to cover other areas of the supply chain).

bazel-contrib/supply-chain/
  README.md

  metadata/
    README.md
    MODULE.bazel (`package_metadata`)
    ...

  sbom/
    README.md
    MODULE.bazel (`rules_sbom`)
    ...

Checklist:

jsharpe commented 3 days ago

rules_license has 37 users in the BCR: https://registry.bazel.build/modules/rules_license. Is that going to become a forwarding shim to package_metadata or are we expecting those users to migrate?

Yannic commented 3 days ago

rules_license will become a shim to package_metadata. I think the expectation is that people still migrate to use package_metadata directly instead of going through the shim, but we'll make sure that there's a smooth migration path with the shims

Yannic commented 3 days ago

This has been approved by the SIG on 2024-11-26: https://docs.google.com/document/d/1YGCYAGLzTfqSOgRFVsB8hDz-kEoTgTEKKp9Jd07TJ5c/edit?tab=t.0#heading=h.whgqs97auf4i