Skip to content

Commit df70f4c

Browse files
author
Natalie Arellano
authored
Merge pull request #2261 from fumblehool/fix/warning-buildpack-toml
Don't warn about clear-env key while parsing buildpack.toml as this is actually expected.
2 parents 86b4bf3 + 9afe64b commit df70f4c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/buildpack/buildpack_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ id = "bp.one"
514514
version = "1.2.3"
515515
homepage = "http://geocities.com/cool-bp"
516516
sbom-formats = ["this should not warn"]
517+
clear-env = true
517518
518519
[[targets]]
519520
os = "some-os"

pkg/dist/buildmodule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type ModuleInfo struct {
2121
Homepage string `toml:"homepage,omitempty" json:"homepage,omitempty" yaml:"homepage,omitempty"`
2222
Keywords []string `toml:"keywords,omitempty" json:"keywords,omitempty" yaml:"keywords,omitempty"`
2323
Licenses []License `toml:"licenses,omitempty" json:"licenses,omitempty" yaml:"licenses,omitempty"`
24+
ClearEnv bool `toml:"clear-env,omitempty" json:"clear-env,omitempty" yaml:"clear-env,omitempty"`
2425
}
2526

2627
func (b ModuleInfo) FullName() string {

0 commit comments

Comments
 (0)