Skip to content

gather_metadata_info does not populate the package_info field of the returned TransitiveMetadataInfo #154

@shs96c

Description

@shs96c

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions