rules_license icon indicating copy to clipboard operation
rules_license copied to clipboard

Tools should not be in the default metadata gathering

Open aiuto opened this issue 1 year ago • 1 comments

When you depend on a tool it should not be included in the license/metadata gathering. We have the filtering function, but it is insufficient.

Some ideas:

  • filter any dependency in the exec configuration. Crude but mostly right.
  • metadata about the attribute usage on attributes. Elegant but hard.

aiuto avatar Apr 24 '23 20:04 aiuto

Because most tools are executables, attributes referencing such tools can be filtered in the gathering aspects via:

if attr_name in dir(ctx.rule.executable):
  // skip attr

junglegoog avatar Jul 06 '23 18:07 junglegoog