Skip to content
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

BOM table is deprecated when building Spring Boot as Native Image app #280

Open
dmikusa opened this issue Nov 15, 2022 · 0 comments
Open
Labels
type:bug A general bug

Comments

@dmikusa
Copy link
Contributor

dmikusa commented Nov 15, 2022

Expected Behavior

When running a build with a Spring Boot app and building a native-image, you'll see this warning:

Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.

Current Behavior

This happens because there is a bug in the build.go script. The problem is that we write an old-style SBOM entry here, but when you do a native-image build, we don't end up writing any new-style SBOM entries.

If you do a regular, non-native-image build you'll get new-style SBOM entries for the Spring Cloud Bindings JAR, but that doesn't get installed with Native image.

When you have old-style SBOM entries and no new-style SBOM entries, you get this particular warning.

Possible Solution

I'm not totally sure. We don't need to write any SBOM entries in the new format because the application SBOM entries are generated in different buildpacks (executable-jar). Perhaps we could write an empty file and get past this warning?

Steps to Reproduce

  1. Build the paketo-buildpacks/samples Java native-image application.

Motivations

This is very minor. It can just be a little confusing to see the WARNING. If we could suppress it, that would be helpful.

@dmikusa dmikusa added the type:bug A general bug label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant