Skip to content

Allow scanning sub dir within a larger search context  #3213

@wagoodman

Description

@wagoodman

What would you like to be added:
We have multiple issues that want to be able to search within a small space, but reference things outside of that space:

It would be nice to allow for something like this:

syft ./my/dir/project-1 --reference ./my/dir

Were I only want to catalog packages within ./my/dir/project-1 but I want to be able to reference file system material from a specific parent directory ./my/dir

In this way if there is a pom.xml in the project dir but the parent pom has required properties, we can reference that material to get the correct version. This applies to any ecosystem where manifests can reference other manifests in parent directories for correct resolution.

Today we have the --exclude flag to tailor the search space, but this doesn't help in a large set of cases (and may result in cumbersome number of flags or brittle configuration).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions