From b6ce5160f9a71d157ac82f116e983f3ade5d2983 Mon Sep 17 00:00:00 2001 From: tracer Date: Wed, 11 Feb 2026 19:46:33 +0100 Subject: [PATCH] prepare for cli updates with custom php binary --- NOTES.md | 1 + ansible/roles/speedBB/tasks/main.yaml | 16 ++++++++++++++++ composer.json | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/NOTES.md b/NOTES.md index d0e5975..fbd5227 100644 --- a/NOTES.md +++ b/NOTES.md @@ -10,3 +10,4 @@ Progress (last 2 days): - Hardened tests with fakes/mocks to cover error paths and edge cases. TODO: Make PHP binary path configurable for updates if default PHP is outdated (ACP -> System). +CI/CD: Runner must have PHP 8.4+ as the default CLI interpreter. diff --git a/ansible/roles/speedBB/tasks/main.yaml b/ansible/roles/speedBB/tasks/main.yaml index 978669b..98fad19 100644 --- a/ansible/roles/speedBB/tasks/main.yaml +++ b/ansible/roles/speedBB/tasks/main.yaml @@ -27,6 +27,22 @@ arguments: --no-dev --optimize-autoloader working_dir: "{{ prod_base_dir }}" php_path: /usr/bin/keyhelp-php84 + register: composer_install + +- name: Debug package discovery when composer install fails + shell: | + set -o pipefail + keyhelp-php84 artisan package:discover -v --ansi 2>&1 | tail -n 200 + args: + chdir: "{{ prod_base_dir }}" + register: package_discover_debug + ignore_errors: true + when: composer_install is failed + +- name: Show package discovery debug output + debug: + var: package_discover_debug.stdout_lines + when: composer_install is failed - name: Install node_modules npm: diff --git a/composer.json b/composer.json index ef5b873..01bac62 100644 --- a/composer.json +++ b/composer.json @@ -98,5 +98,5 @@ "minimum-stability": "stable", "prefer-stable": true, "version": "26.0.2", - "build": "58" + "build": "59" }