From 885c81661882a211b6d467efb8cb47ea39b483d0 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Thu, 27 Aug 2026 17:48:56 -0400 Subject: [PATCH] fix(terraform): invoke package build via bash HCP launches the external data source with bash, so the inner build script should not depend on the git executable bit. --- terraform/build_packages_external.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terraform/build_packages_external.sh b/terraform/build_packages_external.sh index a8e0dc4..38ea006 100755 --- a/terraform/build_packages_external.sh +++ b/terraform/build_packages_external.sh @@ -3,7 +3,10 @@ set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" -"${ROOT}/build_packages.sh" >&2 +# artifacts.tf already launches this file with bash, so +x is not required +# here. Invoke the inner script the same way so HCP plan does not depend on +# the git executable bit. +bash "${ROOT}/build_packages.sh" >&2 if command -v sha256sum >/dev/null 2>&1; then SHA=(sha256sum)