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 omitting buildpack version when using pack builder create --flatten #2051

Open
1 task done
edmorley opened this issue Feb 5, 2024 · 0 comments
Open
1 task done
Labels
status/ready Issue ready to be worked on. type/enhancement Issue that requests a new feature or improvement.
Milestone

Comments

@edmorley
Copy link
Contributor

edmorley commented Feb 5, 2024

Description

Currently the new --flatten feature of pack builder create is a bit awkward to use, since it requires that the list of passed buildpacks include the exact buildpack version. For example --flatten 'foo/bar@1.2.3,foo/baz@4.5.6'. If the @ version suffix is omitted, an error is shown.

This requires the use of additional tooling to parse the builder.toml file, extract the versions, and use that to construct a --flatten string.

Proposed solution

Allow omitting the version entirely - ie: `--flatten 'foo/bar,foo/baz' - and if that syntax is used, then the result would be that all buildpacks of that ID would match, regardless of their version.

Describe alternatives you've considered

Allow using a wildcard version - ie: --flatten 'foo/bar@*,foo/baz@*' (which style-wise would match the buildpack version syntax supported by project.toml)

Additional context

  • This feature should be documented somewhere
@edmorley edmorley added status/triage Issue or PR that requires contributor attention. type/enhancement Issue that requests a new feature or improvement. labels Feb 5, 2024
@jjbustamante jjbustamante added status/ready Issue ready to be worked on. and removed status/triage Issue or PR that requires contributor attention. labels Feb 6, 2024
@jjbustamante jjbustamante added this to the 0.34.0 milestone Feb 6, 2024
@jjbustamante jjbustamante modified the milestones: 0.34.0, 0.35.0 Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/ready Issue ready to be worked on. type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

No branches or pull requests

2 participants