Skip to content

Commit

Permalink
Merge pull request #2261 from fumblehool/fix/warning-buildpack-toml
Browse files Browse the repository at this point in the history
Don't warn about clear-env key while parsing buildpack.toml as this is actually expected.
  • Loading branch information
natalieparellano authored Sep 11, 2024
2 parents 86b4bf3 + 9afe64b commit df70f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/buildpack/buildpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ id = "bp.one"
version = "1.2.3"
homepage = "http://geocities.com/cool-bp"
sbom-formats = ["this should not warn"]
clear-env = true
[[targets]]
os = "some-os"
Expand Down
1 change: 1 addition & 0 deletions pkg/dist/buildmodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type ModuleInfo struct {
Homepage string `toml:"homepage,omitempty" json:"homepage,omitempty" yaml:"homepage,omitempty"`
Keywords []string `toml:"keywords,omitempty" json:"keywords,omitempty" yaml:"keywords,omitempty"`
Licenses []License `toml:"licenses,omitempty" json:"licenses,omitempty" yaml:"licenses,omitempty"`
ClearEnv bool `toml:"clear-env,omitempty" json:"clear-env,omitempty" yaml:"clear-env,omitempty"`
}

func (b ModuleInfo) FullName() string {
Expand Down

0 comments on commit df70f4c

Please sign in to comment.