feat: split stack property into per-builder properties
The `stack` property lived on the `buildpacks` plugin but was shared by both the herokuish and pack builders, so a value valid for one builder broke the other. Each builder now owns its own `stack` property managed via `builder-herokuish:set` and `builder-pack:set`, while `buildpacks:set-property stack` is deprecated and forwards the value to the builder detected from it; existing values migrate automatically on upgrade and changing a builder's stack clears that builder's cache.
This commit is contained in:
23 files changed
+449
-178
No files matched your search
@@ -29,3 +29,29 @@ fn-builder-pack-projecttoml-path() {
|
||||
|
||||
fn-plugin-property-get-default "builder-pack" "$APP" "projecttoml-path" ""
|
||||
}
|
||||
|
||||
fn-builder-pack-computed-stack() {
|
||||
declare APP="$1"
|
||||
|
||||
stack="$(fn-builder-pack-stack "$APP")"
|
||||
if [[ "$stack" == "" ]]; then
|
||||
stack="$(fn-builder-pack-global-stack "$APP")"
|
||||
fi
|
||||
if [[ "$stack" == "" ]]; then
|
||||
stack="${DOKKU_CNB_BUILDER:-heroku/builder:24}"
|
||||
fi
|
||||
|
||||
echo "$stack"
|
||||
}
|
||||
|
||||
fn-builder-pack-global-stack() {
|
||||
declare APP="$1"
|
||||
|
||||
fn-plugin-property-get-default "builder-pack" "--global" "stack" ""
|
||||
}
|
||||
|
||||
fn-builder-pack-stack() {
|
||||
declare APP="$1"
|
||||
|
||||
fn-plugin-property-get-default "builder-pack" "$APP" "stack" ""
|
||||
}
|
||||
Reference in new issue
Block a user