Skip to content

Add os, arch, and distros support#405

Merged
jericop merged 3 commits intopaketo-buildpacks:mainfrom
jericop:os-arch-distros-support
Jul 17, 2025
Merged

Add os, arch, and distros support#405
jericop merged 3 commits intopaketo-buildpacks:mainfrom
jericop:os-arch-distros-support

Conversation

@jericop
Copy link
Copy Markdown
Contributor

@jericop jericop commented Jul 16, 2025

Summary

This change adds support for os, arch, and distros to buildpack dependency metatadata. This makes it possible to create buildpacks with the required metadata to support multiple architectures. In order to make this change the version of syft and docker had to be updated as well. Both had breaking changes that required code and unit/integration tests updates. Additional fields have been added to existing tests to verify os, arch, and distros support. Lastly, numerous updates were needed to fix listing errors. The commit history shows the actual changes, unit tests updates, and then changes needed to fix linting errors. Many of the errors were caused by deferred function calls that did not check the error return value. I updated the function calls to allow errors to bubble up whenever possible.

The output of the sbom json data generated by syft has changed slightly, but it does not appear to be significant. The bomFormat and specVersion have not changed, but the json schema was updated from 2.0.2 to 16.0.34. This change appears to add additional fields and one or more type changes (string to list for idLike).

pre-requisite PRs that have already been merged and released:
buildpacks/imgutil#291
buildpacks/pack#2406

resolves paketo-buildpacks/packit#650

Use Cases

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

@jericop jericop requested review from a team as code owners July 16, 2025 17:44
@jericop jericop added the semver:minor A change requiring a minor version bump label Jul 16, 2025
Copy link
Copy Markdown
Member

@pacostas pacostas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jericop jericop merged commit 4d776eb into paketo-buildpacks:main Jul 17, 2025
7 of 8 checks passed
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.

Architecture validation is too restrictive

2 participants