From 473bcce6887de62e9d19e10117788a45a4d258b8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 4 May 2026 09:32:09 -0400 Subject: [PATCH] fix: use inline source instead of global source Ensure property-functions are sourced only if not already defined. --- plugins/common/functions | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/common/functions b/plugins/common/functions index 3d5246c21..08f316ff8 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -eo pipefail [[ $DOKKU_TRACE ]] && set -x -source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions" has_tty() { declare desc="return 0 if we have a tty" @@ -637,6 +636,10 @@ release_and_deploy() { local exit_code=0 if verify_image "$IMAGE"; then + if ! declare -f -F fn-plugin-property-get-default >/dev/null; then + source "$PLUGIN_AVAILABLE_PATH/common/property-functions" + fi + IMAGE_SOURCE_TYPE="$(get_image_builder_type "$IMAGE" "$APP")" local DOKKU_APP_SKIP_DEPLOY="$(fn-plugin-property-get-default "ps" "$APP" "skip-deploy" "")" local DOKKU_GLOBAL_SKIP_DEPLOY="$(fn-plugin-property-get-default "ps" "--global" "skip-deploy" "")" @@ -976,6 +979,10 @@ fn-migrate-config-to-property() { source "$PLUGIN_AVAILABLE_PATH/config/functions" fi + if ! declare -f -F fn-plugin-property-write >/dev/null; then + source "$PLUGIN_AVAILABLE_PATH/common/property-functions" + fi + if [[ -n "$GLOBAL_CONFIG_VAR" ]]; then local value=$(plugn trigger config-get-global "$GLOBAL_CONFIG_VAR" || true) if [[ -n "$value" ]]; then