diff --git a/platform.md b/platform.md index 40e7fb7d..e7331a2b 100644 --- a/platform.md +++ b/platform.md @@ -488,9 +488,11 @@ Usage: | `51` | Buildpack build error | `50`, `52-59`| Build-specific lifecycle errors -- The lifecycle SHALL execute all buildpacks in the order defined in `` according process outlined in the [Buildpack Interface Specification](buildpack.md). +- The lifecycle SHALL execute all buildpacks in the order defined in `` according to the process outlined in the [Buildpack Interface Specification](buildpack.md). - The lifecycle SHALL add all invoked buildpacks to`/config/metadata.toml`. - The lifecycle SHALL aggregate all `processes`, `slices` and BOM entries returned by buildpacks in `/config/metadata.toml`. +- The lifecycle SHALL record the buildpack-provided default process type in `/config/metadata.toml`. + - The lifecycle SHALL treat `web` processes defined by buildpacks implementing buildpack API < 0.6 as `default = true`. #### `exporter` Usage: @@ -573,7 +575,11 @@ Usage: - MUST contain a layer that includes `/config/metadata.toml` - **If** `` matches a buildpack-provided process: - MUST have `ENTRYPOINT=/cnb/process/` - - **If** `` does not match a buildpack-provided process: + - **Else if** `` is provided and does not match a buildpack-provided process: + - MUST fail + - **Else if** there is a buildpack-provided default process type in `/config/metadata.toml`: + - MUST have `ENTRYPOINT=/cnb/process/` + - **Else**: - MUST have `ENTRYPOINT` set to `/cnb/lifecycle/launcher` - MUST contain the following `Env` entries - `CNB_LAYERS_DIR=` @@ -894,6 +900,8 @@ Where: #### `metadata.toml` (TOML) ```toml +buildpack-default-process-type = "" + [[buildpacks]] id = "" version = "" @@ -1086,7 +1094,7 @@ Where: }, "buildpacks": [ { - "key": "", + "key": "", "version": "", "layers": { "": {