-
Notifications
You must be signed in to change notification settings - Fork 111
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
Builder should warn if newer buildpacks write a bom in *.toml #728
Conversation
Signed-off-by: Natalie Arellano <[email protected]>
Rename concrete implementation per review feedback Signed-off-by: Natalie Arellano <[email protected]>
Fixes #732 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like it! Reads like idiomatic golang.
@@ -249,6 +249,9 @@ func (b *Descriptor) readOutputFiles(bpLayersDir, bpPlanPath string, bpPlanIn Pl | |||
var launchTOML LaunchTOML | |||
launchPath := filepath.Join(bpLayersDir, "launch.toml") | |||
|
|||
bomValidator := NewBOMValidator(b.API, logger) | |||
|
|||
var err error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if necessary. (var err error
)
} | ||
|
||
func (h *v05To06BOMValidator) processBOM(buildpack GroupBuildpack, bom []BOMEntry) []BOMEntry { | ||
return WithBuildpack(buildpack, bom) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this method wasn't created in this PR. But I'm surprised that it actually does anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one's totally my bad. I just tested it out and it works fine.
"github.com/buildpacks/lifecycle/api" | ||
) | ||
|
||
type BOMValidator interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look like it's used outside the package, so the public scope is slightly confusing.
Closing as this is covered in #749 |
Signed-off-by: Natalie Arellano [email protected]