Commit Graph

983 Commits

Author SHA1 Message Date
Terence Lee b745fcfd90
Merge pull request #423 from buildpacks/buildpack/0.12
Finalize Buildpack 0.12
2025-12-11 15:50:05 -06:00
Terence Lee cbecc6517b
Merge branch 'main' into buildpack/0.12 2025-12-11 15:49:56 -06:00
Terence Lee 43e82f8e35
Merge pull request #424 from buildpacks/platform/0.15
Finalize Platform 0.15
2025-12-11 15:48:09 -06:00
Sambhav Kothari 4b7e0155c5
Merge branch 'main' into platform/0.15 2025-12-11 06:01:03 -08:00
Terence Lee 3e861fa490
bump Platform API to 0.15
Signed-off-by: Terence Lee <hone02@gmail.com>
2025-12-10 17:18:32 -06:00
copilot-swe-agent[bot] 9510443e15
Add optional field to system.toml buildpack entries per RFC
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-12-10 17:06:03 -06:00
copilot-swe-agent[bot] 1d3d4f37df
Clarify system buildpack merging behavior - skip if ID already exists
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-12-10 17:06:03 -06:00
copilot-swe-agent[bot] 09aac6e062
Add system.toml support to Platform API per RFC #0101
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-12-10 17:06:03 -06:00
Juan Bustamante bf94eefa45
1. Added CNB_EXEC_ENV to the restorer phase - The environment variable is now included in the restorer inputs table.
2.  Added CNB_EXEC_ENV to the extender phase - The environment variable is now included in the extender inputs table.
 3.  Clarified buildpack/group skipping behavior - Added clear documentation in the detector section explaining how the lifecycle handles buildpacks and groups when execution
  environments don't match.
 4.  Updated launch metadata recording - Modified the metadata.toml documentation to specify that exec-env should use ["*"] for processes that apply to all environments, with clear
  guidance that omitted values default to ["*"].

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-10 17:06:03 -06:00
Juan Bustamante d8d6f320a0
Fixing review comments from Natalie
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-10 17:06:03 -06:00
Juan Bustamante 300305ff3a
formatting issue
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-10 17:06:03 -06:00
Juan Bustamante 8fc6dedc87
Add Execution Environment
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-10 17:06:00 -06:00
Terence Lee af47529bb2
bump Buildpack API to 0.12
Signed-off-by: Terence Lee <hone02@gmail.com>
2025-12-09 10:52:46 -06:00
Juan Bustamante df14513e5c
- Added "AR" attribute to CNB_EXEC_ENV in detect and build tables (marking it as platform-provided and read-only)
- Added formal specification text for exec-env in processes
- Added formal specification text for exec-env in layer metadata

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-09 10:48:23 -06:00
Juan Bustamante db48537887
- Removed exec-env from the [[targets]] TOML example
- Added new [[buildpack.exec-env]] section with name field
- Added documentation explaining that [[buildpack.exec-env]] is optional and lists supported execution environments
- Removed exec-env documentation from the Targets section

- Added exec-env field to [[order.group]] TOML example
- Added documentation explaining that buildpack references in a group MAY contain an exec-env array

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-09 10:48:23 -06:00
Richard Schneeman 80001658f3
Apply suggestions from code review
Co-authored-by: Terence Lee <hone02@gmail.com>
Signed-off-by: Richard Schneeman <richard.schneeman+no-recruiters@gmail.com>
2025-12-09 10:48:23 -06:00
Schneems f9127137ff
Use consistent author language
The text `<build-config>` is not defined in this document as the `buildpack.md` is aimed at buildpack authors. The `CNB_PLATFORM_DIR` is referenced at the top of the document and is generally more recognizable by a buildpack author.

The platform docs specify this in their own document:

> Operator-provided environment variables MUST be supplied by the platform as files in the `<build-config>/env/` directory.

Signed-off-by: Schneems <richard.schneeman+foo@gmail.com>
2025-12-09 10:48:23 -06:00
Schneems c35468911f
Add `clear-env = true` note
The problem is described in https://github.com/buildpacks/docs/pull/841. While looking at the docs I was trying to determine if the platform env dir is provided when using `clear-env = true` and reading this paragraph in isolation it appeared that it was not.

It's now clear that "in the environment of `/bin/detect` or `/bin/build`" is referring to the specific "the environment" of the process and not the general "the environment" of the buildpack. However at the time, I somehow managed to mis-read this.

The sentence I'm adding, is redundant based on the paragraph above it, but I feel this helps clarify what's going on to a casual reader.

Signed-off-by: Schneems <richard.schneeman+foo@gmail.com>
2025-12-09 10:48:23 -06:00
Juan Bustamante bca1e0fade
I've made the requested changes to address the feedback on PR #415. Specifically:
1. Added clarification about platform behavior when the execution environment differs between builds
  2. Added a note prohibiting the / character in execution environment values as it's reserved

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-09 10:48:23 -06:00
Juan Bustamante 2dbd51597c
fixing formatting issues
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-09 10:48:23 -06:00
Juan Bustamante f3e471b931
Add Execution Enviroment
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-12-09 10:48:23 -06:00
David Justice 7fb4571dba
fix typo to image extension link
Signed-off-by: David Justice <david@devigned.com>
2025-12-09 10:48:18 -06:00
Joe Kutner c58d66f028
Merge pull request #415 from buildpacks/jjbustamante/0134-execution-env-buildpack
[Buildpack API] - Add Execution Enviroment definition
2025-11-13 16:43:34 -06:00
Joe Kutner c7071cd400
Merge branch 'main' into jjbustamante/0134-execution-env-buildpack 2025-11-13 16:43:25 -06:00
Joe Kutner 732fc7b8ae
Merge pull request #416 from buildpacks/jjbustamante/0134-execution-env-platform
[Platform API] - Add Execution Environment definition
2025-11-13 16:42:52 -06:00
Joe Kutner 29d89c063a
Merge branch 'main' into jjbustamante/0134-execution-env-platform 2025-11-13 16:42:42 -06:00
Joe Kutner 582256c489
Merge pull request #419 from buildpacks/copilot/fix-5b111c9e-e1c3-498a-9786-bfe6dbc98fa4
[WIP] [RFC #0101] Add System Buildpack to Platform API
2025-11-13 16:42:05 -06:00
Joe Kutner 52a4c8f17b
Merge branch 'main' into copilot/fix-5b111c9e-e1c3-498a-9786-bfe6dbc98fa4 2025-11-13 16:41:54 -06:00
Terence Lee 9b0de62494
Merge pull request #418 from schneems/schneems/clear-env
Clear up `clear-env=true` behavior from buildpack author perspective
2025-11-06 17:15:28 -06:00
Juan Bustamante bf7d6a1363 - Added "AR" attribute to CNB_EXEC_ENV in detect and build tables (marking it as platform-provided and read-only)
- Added formal specification text for exec-env in processes
- Added formal specification text for exec-env in layer metadata

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-10-26 17:50:16 -05:00
Juan Bustamante f0d3739ef0 - Removed exec-env from the [[targets]] TOML example
- Added new [[buildpack.exec-env]] section with name field
- Added documentation explaining that [[buildpack.exec-env]] is optional and lists supported execution environments
- Removed exec-env documentation from the Targets section

- Added exec-env field to [[order.group]] TOML example
- Added documentation explaining that buildpack references in a group MAY contain an exec-env array

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-10-26 17:25:09 -05:00
Richard Schneeman 798bf6c688
Apply suggestions from code review
Co-authored-by: Terence Lee <hone02@gmail.com>
Signed-off-by: Richard Schneeman <richard.schneeman+no-recruiters@gmail.com>
2025-10-11 05:25:10 -05:00
copilot-swe-agent[bot] 8846d573e7 Add optional field to system.toml buildpack entries per RFC
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-10-09 15:14:38 +00:00
copilot-swe-agent[bot] d31b364b72 Clarify system buildpack merging behavior - skip if ID already exists
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-10-03 15:11:53 +00:00
copilot-swe-agent[bot] 08eef44418 Add system.toml support to Platform API per RFC #0101
Co-authored-by: jabrown85 <790999+jabrown85@users.noreply.github.com>
2025-10-02 22:27:41 +00:00
copilot-swe-agent[bot] aed85973e4 Initial plan 2025-10-02 22:16:26 +00:00
Schneems 273ef8e6f5 Use consistent author language
The text `<build-config>` is not defined in this document as the `buildpack.md` is aimed at buildpack authors. The `CNB_PLATFORM_DIR` is referenced at the top of the document and is generally more recognizable by a buildpack author.

The platform docs specify this in their own document:

> Operator-provided environment variables MUST be supplied by the platform as files in the `<build-config>/env/` directory.

Signed-off-by: Schneems <richard.schneeman+foo@gmail.com>
2025-08-06 16:27:58 -05:00
Schneems 5ad438c6d3 Add `clear-env = true` note
The problem is described in https://github.com/buildpacks/docs/pull/841. While looking at the docs I was trying to determine if the platform env dir is provided when using `clear-env = true` and reading this paragraph in isolation it appeared that it was not.

It's now clear that "in the environment of `/bin/detect` or `/bin/build`" is referring to the specific "the environment" of the process and not the general "the environment" of the buildpack. However at the time, I somehow managed to mis-read this.

The sentence I'm adding, is redundant based on the paragraph above it, but I feel this helps clarify what's going on to a casual reader.

Signed-off-by: Schneems <richard.schneeman+foo@gmail.com>
2025-08-06 16:27:58 -05:00
Juan Bustamante cfcd6baa40 1. Added CNB_EXEC_ENV to the restorer phase - The environment variable is now included in the restorer inputs table.
2.  Added CNB_EXEC_ENV to the extender phase - The environment variable is now included in the extender inputs table.
 3.  Clarified buildpack/group skipping behavior - Added clear documentation in the detector section explaining how the lifecycle handles buildpacks and groups when execution
  environments don't match.
 4.  Updated launch metadata recording - Modified the metadata.toml documentation to specify that exec-env should use ["*"] for processes that apply to all environments, with clear
  guidance that omitted values default to ["*"].

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-03 08:50:25 -05:00
Juan Bustamante c5b227d441 reverting changes in platform.md, this must be added in the other PR for plaform changes
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-03 08:35:45 -05:00
Juan Bustamante 531f835403 1. Added CNB_EXEC_ENV to the restorer phase
2.  Added CNB_EXEC_ENV to the extender phase
  3.  Clarified buildpack/group skipping behavior for environment mismatches in the detector section
  4.  Updated metadata recording to include exec-env field with proper documentation about using ["*"] for all environments

  The changes ensure that:
  - The execution environment is properly propagated through all relevant lifecycle phases
  - The behavior for environment mismatches is clearly defined
  - Process metadata properly records execution environment restrictions using ["*"] for universal processes

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-06-03 08:28:25 -05:00
Juan Bustamante 0312eab0cf Fixing review comments from Natalie
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-14 10:41:22 -05:00
Juan Bustamante ffa953f1fb I've made the requested changes to address the feedback on PR #415. Specifically:
1. Added clarification about platform behavior when the execution environment differs between builds
  2. Added a note prohibiting the / character in execution environment values as it's reserved

Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-09 11:06:18 -05:00
Juan Bustamante befbc5566d fixing formatting issues
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-06 21:10:06 -05:00
Juan Bustamante cf2a1998d8 formatting issue
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-06 21:07:37 -05:00
Juan Bustamante c8dda27443 Add Execution Environment
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-06 20:59:24 -05:00
Juan Bustamante 80a272e74d Add Execution Enviroment
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
2025-05-06 20:58:38 -05:00
Natalie Arellano d29ba81518
Merge pull request #413 from devigned/fix-image-ex-typo
fix typo to image extension link
2025-02-24 11:46:23 -05:00
David Justice bdcac26a7d
fix typo to image extension link
Signed-off-by: David Justice <david@devigned.com>
2024-12-09 14:55:38 -05:00
Natalie Arellano f3fd7555c8
Merge pull request #410 from buildpacks/platform/0.14
Finalize Platform 0.14
2024-07-17 09:48:52 -04:00