Skip to content

RFC: Introduce idea of embedded package #177

Description

@JonoYang

Many times, we encounter packages within other packages. For example, there are maven JARs that contain JARs, as is the case with Spring Boot or other uber JARs. We currently do not have the concept of relating packages like this, where a group of packages are contained within another package. This relation would help us in the cases where we are matching an uber JAR package and we can have a list of all the packages contained within that package and return with the match not only the uber JAR package data, but also the package data for all the other embedded packages.

This will probably be a new foreign key on Packages with the name embedded_packages.

Activity

  1. JonoYang commented on Aug 29, 2023

    @JonoYang
    MemberAuthor

    An idea about how to populate the embedded package field for a Package would be to do it during package indexing time.

    After we fingerprint the codebase for the package we want to index, we check to see if the directory fingerprints we just computed match against other directory fingerprints from other packages, excluding different versions of the package we are currently indexing. If there is a match, then we can say that this package that we're indexing is embedded in another.

    This step can also show us what packages are embedded within the package we're currently indexing.

  2. armijnhemel commented on Sep 13, 2023

    @armijnhemel

    Related: #163

  3. changed the title [-]Introduce idea of embedded package[/-] [+]RFC: Introduce idea of embedded package[/+] on Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions