From bb4cbaf5788487bf646e2e37b46c98d780b7dde3 Mon Sep 17 00:00:00 2001 From: Tadas Labutis Date: Tue, 30 Jun 2026 17:03:35 +0300 Subject: [PATCH] DGS-430 Add --ignore-platform-reqs to release build The composer.lock pins PHP 7+/8+ package versions while composer.json still declares config.platform.php=5.6. composer install --no-dev then fails with 'lock file does not contain a compatible set of packages', so the release job produced no dpdbaltics.zip and users only saw the source archive without vendor (module invalid and cannot be loaded). Ignoring platform reqs lets the locked set install as-is so the build attaches the vendor-bundled zip again. --- .github/workflows/create-zip.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-zip.yml b/.github/workflows/create-zip.yml index 22074b4a..51b98fec 100644 --- a/.github/workflows/create-zip.yml +++ b/.github/workflows/create-zip.yml @@ -14,8 +14,8 @@ jobs: fetch-depth: 0 - name: build run: | - composer install --no-dev --optimize-autoloader --classmap-authoritative - composer dump-autoload --no-dev --optimize --classmap-authoritative + composer install --no-dev --optimize-autoloader --classmap-authoritative --ignore-platform-reqs + composer dump-autoload --no-dev --optimize --classmap-authoritative --ignore-platform-reqs rm -rf .git .github tests vendor.zip .gitignore mkdir dpdbaltics rsync -Rr ./ ./dpdbaltics diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 222bc07d..03567f0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: fetch-depth: 0 - name: build run: | - composer install --no-dev --optimize-autoloader --classmap-authoritative - composer dump-autoload --no-dev --optimize --classmap-authoritative + composer install --no-dev --optimize-autoloader --classmap-authoritative --ignore-platform-reqs + composer dump-autoload --no-dev --optimize --classmap-authoritative --ignore-platform-reqs rm -rf .git rm -rf .github rm -rf tests