Skip to content

Commit

Permalink
Add examples for build-write flag and add a caveat
Browse files Browse the repository at this point in the history
Signed-off-by: Sambhav Kothari <[email protected]>
  • Loading branch information
sambhav committed May 5, 2021
1 parent 1228814 commit 7e42239
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion text/0000-build-write-flag.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ There are various use cases when you may want a common workspace that multiple b

In such a case a buildpack could provide a layer that is marked as `build-writable` i.e. subsequent buildpacks can modify its contents and the final state of the layer at the end of the build process is what is exported out.

One example might be an Android SDK buildpack that sets up ANDROID_SDK_ROOT (pointing to a layer), which a Gradle buildpack may later write into when gradle runs.

Another example can be a CCache buildpack that sets up `CCACHE_DIR` (pointing to a layer), which a CMake buildpack may use for its build cache.

## What is the expected outcome?

The spec and lifecycle is modified to support the above use cases.
Expand All @@ -68,7 +72,8 @@ The lifecycle will have to layerize the layers marked `build-write` as `false` d
# Drawbacks
[drawbacks]: #drawbacks

Possibly mixing the concerns of the `build` and the `export` phases.
- Possibly mixing the concerns of the `build` and the `export` phases.
- Added complexity of more flags for users.

# Alternatives
[alternatives]: #alternatives
Expand Down

0 comments on commit 7e42239

Please sign in to comment.