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

Support dependency filters when packing a buildpack offline #336

Open
braunsonm opened this issue Feb 29, 2024 · 1 comment
Open

Support dependency filters when packing a buildpack offline #336

braunsonm opened this issue Feb 29, 2024 · 1 comment

Comments

@braunsonm
Copy link

Describe the Enhancement

Currently when you package a buildpack offline with Jam, it will include all dependencies. With libpak you can use --dependency-filter multiple times to provide regular expressions that match dependencies to include.

Additionally you can use --strict-filters so that the regular expression needs to match the dependency ID as well as the Version. This allows users to provide a filter of (jre|^17.*) to only include that dependency for a specific version.

Possible Solution

The same functionality as libpak create-package. See above.

Motivation

Packaging offline buildpacks will often include many more dependencies than you know you will need and creates huge images that need to be pulled at build time.

@sophiewigmore
Copy link
Member

Hey @braunsonm this is a good idea. We're open to contribution if you want this feature ASAP, or we'll try to get to it when we can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants