From 307a895047aeaa1c66d9747d335f66a1eccdf835 Mon Sep 17 00:00:00 2001 From: LibraVault Date: Sat, 22 Aug 2026 14:08:50 +0000 Subject: [PATCH] fix(ci): escape heredoc << in CircleCI ios-testflight config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Live-triggering pipeline #145 (release-build + firebase-distribution + ios-testflight together) failed outright with a config compile error before any job ran: Error calling workflow: 'manual-ios-testflight' Unclosed '<<' tag ('<<' must be escaped as '\<<' in config v2.1+) cat > ExportOptions.plist << EOF CircleCI's own config v2.1+ template engine uses << >> for pipeline parameter interpolation (same syntax already used correctly throughout this file, e.g. << pipeline.parameters.foo >>) and collides with a literal bash heredoc `<< EOF` in the "Create Export Options" step — not caught by plain YAML parsing (python's yaml.safe_load, used to validate every prior PR in this series) since it's a separate preprocessing pass CircleCI itself runs. Fixed by escaping as \<< per CircleCI's own error message. Grepped the rest of the file for other `<<` occurrences — everything else is a legitimate pipeline. parameters/pipeline.number reference, no other instances of this bug. No real side effects from the failed trigger: the whole pipeline errored at compile time, before release-build/firebase-distribution/ ios-testflight jobs started, so no APK was built/signed and no real Firebase Distribution notification went to testers. Also folds in an earlier uncommitted .gitignore addition (.claude/settings.local.json, used for narrowly-scoped one-shot permission grants while pushing CircleCI secrets this session). Co-Authored-By: Claude Sonnet 5 --- .circleci/config.yml | 2 +- .gitignore | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d9c793ee..1e790ca2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -716,7 +716,7 @@ jobs: - run: name: Create Export Options command: | - cat > ExportOptions.plist << EOF + cat > ExportOptions.plist \<< EOF diff --git a/.gitignore b/.gitignore index 1fbc518b..1e4ac7a8 100644 --- a/.gitignore +++ b/.gitignore @@ -82,3 +82,6 @@ DerivedData/ /third-party/sherpa-onnx/ios/ /third-party/sherpa-onnx/build-ios/ /ios/LibraVaultApp/LibraVault/LibraVault/PocketTTSModel/ + +# Personal permission overrides, not shared with the team. +/.claude/settings.local.json