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

inspector: support flattened buildpacks #270

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Conversation

arjun024
Copy link
Member

@arjun024 arjun024 commented Jun 8, 2023

With platforms introducing the ability to create flattened buildpackages,
the idea of 1 layer = 1 buildpack is not always true anymore - a single layer can contain multiple buildpacks.
This change adds to the inspector the ability to read buildpack metadata off flattened buildpacks.

This fixes jam summarize when creating summary/release notes for flattened buildpacks.
Previously it picked up the first buildpack.toml it could find in the layer, and assumed it to represent the buildpackage.

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).

@arjun024 arjun024 added the semver:minor A change requiring a minor version bump label Jun 8, 2023
@arjun024 arjun024 marked this pull request as ready for review June 8, 2023 21:58
@arjun024 arjun024 requested a review from a team as a code owner June 8, 2023 21:58
With platforms introducing the ability to create flattened
buildpackages[1], the idea of 1 layer = 1 buildpack is not always true
anymore - a single layer can contain multiple buildpacks.
This change adds to the inspector the ability to read buildpack
metadata off flattened buildpacks.

This fixes "jam summarize" when creating summary/release notes
for flattened buildpacks. Previously it picked up the first
buildpack.toml it could find in the layer, and assumed it to represent
the buildpackage.

[1]: buildpacks/pack#1691
@arjun024 arjun024 force-pushed the summarize-flatten branch 2 times, most recently from fb3ba2a to 668227e Compare June 9, 2023 18:46
@sophiewigmore sophiewigmore merged commit b7e18d1 into main Jun 9, 2023
7 checks passed
@sophiewigmore sophiewigmore deleted the summarize-flatten branch June 9, 2023 21:04
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants