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

Allow scanning sub dir within a larger search context #3213

Open
wagoodman opened this issue Sep 9, 2024 · 0 comments
Open

Allow scanning sub dir within a larger search context #3213

wagoodman opened this issue Sep 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wagoodman
Copy link
Contributor

wagoodman commented Sep 9, 2024

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).

@wagoodman wagoodman added the enhancement New feature or request label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant