bazelbuild / rules_license

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow rulesets to adopt rules_license

fmeum opened this issue · comments

While trying out rules_license for a ruleset I maintain, I noticed three problems that made it difficult for me to use:

  1. The well-known license_kinds are not publicly visible (fixed by #7).
  2. It is not possible to set the visibility of license targets (fixed by #8).
  3. There is no release, so the repository can't be safely loaded via http_archive. This turned out to be an "urban legend", see bazel-contrib/SIG-rules-authors#11 (comment).

Is rules_license considered to be in a stable enough state that rulesets could already use it to add applicable_licenses with well-known license_kinds to their public targets? If so, it would be great if these three problems could be resolved.

@aiuto Friendly ping.

commented

I am starting to work on this now. Stay tuned. And maybe read https://docs.google.com/document/d/1XszGbpMYNHk_FGRxKJ9IXW10KxMPdQpF5wWbZFpA4C8/edit#

commented

Believed fixed. We are using this from rules_pkg, and within Bazel itself.
It's still a very slim feature set. I'm using Bazel as a test case to wind through a lot of issues related to adding license attestation to rules that don't have it. That is higher priority for me than adding features, because the features don't do much good if you have no license attestations to drive them.