Skip to content

System Buildpacks#1543

Merged
jabrown85 merged 6 commits intomainfrom
jab/system-buildpacks
Dec 3, 2025
Merged

System Buildpacks#1543
jabrown85 merged 6 commits intomainfrom
jab/system-buildpacks

Conversation

@jabrown85
Copy link
Copy Markdown
Contributor

Summary

This pull request introduces support for merging system buildpacks (defined in system.toml) into the buildpack order for Platform API >= 0.15. It includes changes to the detector phase, CLI flags, configuration handling, and adds comprehensive tests to verify the new behavior. The most important changes are grouped below.

Platform API 0.15+ system buildpack support:

  • The detector phase now reads and merges system buildpacks (from system.toml) with the buildpack order when Platform API >= 0.15. System buildpacks are prepended and appended to each group in the order. [1] [2] [3] [4]
  • Added CLI flag --system to specify the path to system.toml for relevant commands, and enabled it for Platform API >= 0.15. [1] [2] [3]

Configuration and handler updates:

  • The ConfigHandler interface now supports reading system buildpacks via a new ReadSystem method.
  • Updated the detector factory to use the new getOrderWithSystem method, which merges system buildpacks as needed.

Testing and validation:

  • Added new acceptance and unit tests for merging system buildpacks, covering various scenarios including only pre/post buildpacks, empty system, and extension preservation. [1] [2] [3]
  • Added test data for system.toml and middle_order.toml to support acceptance tests. [1] [2]

Minor code cleanup:

Release notes


Related

Implements Spec Changes here


Context

  • Spec PR has been merged
  • Any updates to spec PR are reflected in changesets

@jabrown85 jabrown85 marked this pull request as ready for review November 18, 2025 14:51
@jabrown85 jabrown85 requested a review from a team as a code owner November 18, 2025 14:51
@jabrown85
Copy link
Copy Markdown
Contributor Author

buildpacks/spec#419 has been merged. Once 0.15 is cut, this can be merged in and released.

@jabrown85 jabrown85 merged commit 88fedcf into main Dec 3, 2025
6 checks passed
@jabrown85 jabrown85 deleted the jab/system-buildpacks branch December 3, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants