Summary
Similar to #2192, Pack CLI gives an incorrect warning about a valid buildpack.toml key, but this time it's the clear-env key, which is allowed in the spec:
https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpacktoml-toml
Reproduction
Steps
- Create a buildpack whose
buildpack.toml contains:
api = "0.11"
[buildpack]
id = "testing-buildpack"
version = "0.0.0"
clear-env = true
pack build --builder heroku/builder:24 --buildpack <path_to_that_buildpack>
Current behavior
Warning: Ignoring unexpected key(s) in descriptor for buildpack testing-buildpack: buildpack.clear-env
===> ANALYZING
...
Expected behavior
No warning about an unexpected clear-env key.
Environment
pack info
Pack CLI v0.35.1
lifecycle 0.20.1
Summary
Similar to #2192, Pack CLI gives an incorrect warning about a valid
buildpack.tomlkey, but this time it's theclear-envkey, which is allowed in the spec:https://github.com/buildpacks/spec/blob/main/buildpack.md#buildpacktoml-toml
Reproduction
Steps
buildpack.tomlcontains:pack build --builder heroku/builder:24 --buildpack <path_to_that_buildpack>Current behavior
Expected behavior
No warning about an unexpected
clear-envkey.Environment
pack info
Pack CLI v0.35.1
lifecycle 0.20.1