Skip to content

Commit b745fcf

Browse files
authored
Merge pull request #423 from buildpacks/buildpack/0.12
Finalize Buildpack 0.12
2 parents 43e82f8 + cbecc65 commit b745fcf

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ When the specification refers to a path in the context of an OCI layer tar (e.g.
5050

5151
These documents currently specify:
5252

53-
- Buildpack API: `0.10`
53+
- Buildpack API: `0.12`
5454
- Distribution API: `0.3`
5555
- Platform API: `0.15`

buildpack.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This document specifies the interface between a lifecycle program and one or mor
8282
- [Build Plan (TOML) `requires.version` Key](#build-plan-toml-requiresversion-key)
8383

8484
## Buildpack API Version
85-
This document specifies Buildpack API version `0.10`
85+
This document specifies Buildpack API version `0.12`
8686

8787
Buildpack API versions:
8888
- MUST be in form `<major>.<minor>` or `<major>`, where `<major>` is equivalent to `<major>.0`
@@ -250,10 +250,10 @@ OR
250250
Executable: `<layers>/<layer>/exec.d/<process>/<executable>`, Working Dir: `<app[AI]>`
251251

252252
| Input | Description
253-
|------------------------------------------------|----------------------------------------------
253+
|------------------------------------------------|----------------------------------------------------------------------------------
254254
| `$0` | Absolute path of the executable
255-
| [](README.md#linux-only)FD 3 | A third open file descriptor
256-
| [](README.md#windows-only) `<handle>` | An additional open handle
255+
| [](README.md#linux-only)FD 3 | A third open file descriptor inherited by `<executable>` from the calling process
256+
| [](README.md#windows-only) `<handle>` | An additional open handle inherited by `<executable>` from the calling process
257257
| [](README.md#windows-only)`CNB_EXEC_D_HANDLE` | Hexidecimal number for `<handle>`
258258

259259
| Output | Description
@@ -277,20 +277,18 @@ The lifecycle MUST treat a layer with unset `types` as a `launch = false`, `buil
277277
The following table illustrates the behavior depending on the value of each flag.
278278
Note that the lifecycle only restores layers from the cache, never from the previous image.
279279

280-
`build` | `cache` | `launch` | Metadata and SBOM** Restored | Layer Restored
281-
----------|----------|----------|------------------------------|---------------------
282-
true | true | true | Yes - from the app image | Yes* - from the cache
283-
true | true | false | Yes - from the cache | Yes - from the cache
284-
true | false | true | No | No
285-
true | false | false | No | No
286-
false | true | true | Yes - from the app image | Yes* - from the cache
287-
false | true | false | Yes - from the cache | Yes - from the cache
288-
false | false | true | Yes - from the app image | No
289-
false | false | false | No | No
280+
| `build` | `cache` | `launch` | Metadata and SBOM* Restored | Layer Restored |
281+
| ------- | ------- | -------- | --------------------------- | -------------- |
282+
| true | true | true | Yes | Yes |
283+
| true | true | false | Yes | Yes |
284+
| true | false | true | No | No |
285+
| true | false | false | No | No |
286+
| false | true | true | Yes | Yes* |
287+
| false | true | false | Yes | Yes |
288+
| false | false | true | Yes | No |
289+
| false | false | false | No | No |
290290

291-
\* The metadata and layer are restored only if the layer SHA recorded in the previous image matches the layer SHA recorded in the cache.
292-
293-
\** Only SBOM files associated with a layer are restored. Launch-level and build-level SBOM files must be re-created on each build.
291+
\* Only SBOM files associated with a layer are restored. Launch-level and build-level SBOM files must be re-created on each build.
294292

295293
Examples:
296294
* `build = true, cache = true, launch = true`:
@@ -948,7 +946,7 @@ For each label, the buildpack:
948946

949947
The lifecycle MUST add each label as an image label on the created image metadata.
950948

951-
If multiple buildpacks define labels with the same key, the lifecycle MUST use the last label defintion ordered by buildpack execution for the image label.
949+
If multiple buildpacks define labels with the same key, the lifecycle MUST use the last label definition ordered by buildpack execution for the image label.
952950

953951
For each process, the buildpack:
954952

0 commit comments

Comments
 (0)