Skip to content

Commit

Permalink
Simplify implementation with a default of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jan 13, 2025
1 parent 890b675 commit 78de4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0133-explicit-layer-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ load_order = 1

Add an optional positive numeric field to `<buildpack-layer-dir>/<layer-name>.toml` with a key `load_order`. Buildpack authors start with a number such as `1` and then increment it for every layer they write a new layer. The lifecycle reads these numbers and orders the written layers in the same ascending order. This way, `1` will be evaluated before `2`.

Any layers with a duplicate `load_order` will be evaluated in alphabetic order (the same behavior as today). Any layers without a `load_order` will be loaded before layers with an explicit order. A load order of `0` will be loaded after layers without an explicit `load_order`. This default means that any explicitly ordered layers will have their `PATH` modifications prepended after the default layers, which has the effect of taking precedence.
Any layers with a duplicate `load_order` will be evaluated in alphabetic order (the same behavior as today). Any layers without an explicit `load_order` will default to a value of `0`. This default means that any explicitly ordered layers will have their `PATH` modifications prepended after the default layers, which has the effect of taking precedence.

The section should return to the examples from the previous section, and explain more fully how the detailed proposal makes those examples work.

Expand Down

0 comments on commit 78de4eb

Please sign in to comment.