rules_license icon indicating copy to clipboard operation
rules_license copied to clipboard

`gather_metadata_info` does not populate the `package_info` field of the returned `TransitiveMetadataInfo`

Open shs96c opened this issue 5 months ago • 1 comments

Expected Behavior

When using the gather_metadata_info aspect, the generated TransitiveMetadataInfo should have all fields populated.

Actual Behavior

Only deps, licenses, and traces are populated.

Steps to Reproduce the Problem

  1. Use the gather_metadata_info aspect on a target
  2. Inspect the returned TransitiveMetadataInfo provider

It looks like the call to the factory method doesn't include a reference to the gathered PackageInfo instances: https://github.com/bazelbuild/rules_license/blob/main/rules/licenses_core.bzl#L204-L210

shs96c avatar Sep 11 '24 11:09 shs96c