pack buildpack new --targets
creates buildpack.toml
with wrong field/table names for distro name/version
#2120
Labels
help wanted
Need some extra hands to get this done.
status/ready
Issue ready to be worked on.
type/bug
Issue that reports an unexpected behaviour.
Milestone
Summary
The
pack buildpack new
command has a--targets
option that allows for pre-populating the[[targets]]
table in the generatedbuildpack.toml
file.However, the command currently uses the wrong field and table names if a distro name/version is specified:
targets.distributions
(instead oftargets.distros
)versions
of type array (instead ofversion
of type string)xref:
targets.distros.version
field inbuildpack.toml
spec#401cc @natalieparellano
Reproduction
Steps
pack buildpack new testcase-targets-distros --api 0.10 --targets "linux/amd64:ubuntu@123"
cat testcase-targets-distros/buildpack.toml
Current behavior
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: