Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore ways to have more package metadata providers. #59

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Nov 14, 2022

  1. Explore ways to have more package metadata providers.

    Licenses are still special because they need to go down to the
    license_kind, but other metadata (self-contained) providers can be
    gathered generically.  This PR has two parallel implementations so we
    can explore the ramifactions of each.
    
    The early attempt was to make PackageInfo a first class element, equal
    to LicensesInfo in the way we recursively gather it.  The problem with
    that approach is that it requires you to scale licenses_core.bzl with
    each new type.
    
    A different approach is to have a generic TransitiveMetadataInfo
    collector that can hold many different types of provider in it,
    as long as they all obey the same protocol for identifying their
    type. We pass a provider list to gather_licenses_info_common()
    to select what to include.
    
    This way, a user adding a private metadata type only needs to
    add a new write-json capability for their custom provider.
    That is still a little ugly, but at least we can share
    gather_licenses_info_common().
    aiuto committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    0565925 View commit details
    Browse the repository at this point in the history
  2. more spdx-y

    aiuto committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    bbff1f8 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Configuration menu
    Copy the full SHA
    a1167c0 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Configuration menu
    Copy the full SHA
    f8fdd64 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. merte from main

    aiuto committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    4a60c99 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Configuration menu
    Copy the full SHA
    4f0d93f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0198dd6 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. Configuration menu
    Copy the full SHA
    554d7b4 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    846d043 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. Configuration menu
    Copy the full SHA
    2d3fd73 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Configuration menu
    Copy the full SHA
    6111aa4 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Configuration menu
    Copy the full SHA
    5567e23 View commit details
    Browse the repository at this point in the history