From 7f19f72c0d69d4205732ad783585c9cda43f55e5 Mon Sep 17 00:00:00 2001 From: josegonzalez Date: Sun, 15 Jan 2023 12:28:06 -0500 Subject: [PATCH] fix: allow the herokuish builder to be detected when the computed allowed value is set not set to false --- plugins/builder-herokuish/builder-detect | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/builder-herokuish/builder-detect b/plugins/builder-herokuish/builder-detect index fc6fee428..24570c979 100755 --- a/plugins/builder-herokuish/builder-detect +++ b/plugins/builder-herokuish/builder-detect @@ -1,5 +1,6 @@ #!/usr/bin/env bash source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/functions" +source "$PLUGIN_AVAILABLE_PATH/builder-herokuish/internal-functions" set -eo pipefail [[ $DOKKU_TRACE ]] && set -x @@ -10,7 +11,9 @@ trigger-builder-herokuish-builder-detect() { local ARCHITECTURE="$(dpkg --print-architecture 2>/dev/null || true)" if [[ "$ARCHITECTURE" == "armhf" ]] || [[ "$ARCHITECTURE" == "arm64" ]]; then - return + if [[ "$(fn-builder-herokuish-computed-allowed "$APP")" != "true" ]]; then + return + fi fi if fn-has-buildpacks-file "$SOURCECODE_WORK_DIR"; then