-
Notifications
You must be signed in to change notification settings - Fork 106
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
Exporter when caching/exporting layers for a buildpack should also cache/export sbom as a separate layer #741
Conversation
7eaf387
to
b7322e2
Compare
…ged layer boms Signed-off-by: Natalie Arellano <narellano@vmware.com>
1283876
to
11d2a73
Compare
Signed-off-by: Natalie Arellano <narellano@vmware.com>
Some findings: Because the exporter and cacher generally assume that launch and cache layers "behave the same", it would make the code a lot simpler if the Builder in #738 were to also copy sbom files for @samj1912 WDYT? |
It might make sense to create a |
Use a pointer so that we can omit it completely when empty Signed-off-by: Natalie Arellano <narellano@vmware.com>
Signed-off-by: Natalie Arellano <narellano@vmware.com>
bpMD.BOM.SHA, err = e.addOrReuseCacheLayer(cacheStore, sbomLayer, origBOMSHA) | ||
if err != nil { | ||
return err | ||
} |
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.
Should this warn and move on instead of returning an error, like the lines 44-47 above?
Closing as this is covered in #749 |
Fixes #736 and #735
This is rough and still needs tests, adding this draft PR so that it could be discussed.