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

Removes logic to restrict output of deprecated label-based BOM entries #122

Merged
merged 2 commits into from Feb 8, 2022

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Feb 7, 2022

Summary

Starting with lifecycle 0.13.3, it is permitted to have both the old style label-based BOM information and the new style layer-based BOM information. If the buildpack API is 0.6 or older, label-based BOMs only is OK. If the buildpack API is 0.7, you may have both label-based BOM and layer-based BOM or just layer-based BOM. It is permitted to have just label-based BOM, however, that will generate a warning from the lifecycle.

Given this, we're removing the logic which conditionally controlled the BOM formats that were output. Going forward DependencyLayerContributor and HelperLayerContributor will always output both BOM formats.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

Starting with lifecycle 0.13.3, it is permitted to have both the old style label-based BOM information and the new style layer-based BOM information. If the buildpack API is 0.6 or older, label-based BOMs only is OK. If the buildpack API is 0.7, you may have both label-based BOM and layer-based BOM or just layer-based BOM. It is permitted to have just label-based BOM, however, that will generate a warning from the lifecycle.

Given this, we're removing the logic which conditionally controlled the BOM formats that were output. Going forward DependencyLayerContributor and HelperLayerContributor will always output both BOM formats.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Feb 7, 2022
@dmikusa dmikusa requested a review from a team February 7, 2022 17:16
@dmikusa dmikusa added semver:minor A change requiring a minor version bump type:enhancement A general enhancement and removed type:bug A general bug semver:patch A change requiring a patch version bump labels Feb 7, 2022
@pivotal-david-osullivan pivotal-david-osullivan merged commit 4b68a8f into main Feb 8, 2022
@pivotal-david-osullivan pivotal-david-osullivan deleted the lifecycle_0_13_3 branch February 8, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants