diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index be338df9..9c3733d1 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -45,7 +45,7 @@ jobs: uses: actions/checkout@v5 - name: Fetch built PHAR from artifacts - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 with: name: pie-${{ github.sha }}.phar diff --git a/.github/workflows/build-phar.yml b/.github/workflows/build-phar.yml index 1317436c..acdfbd2f 100644 --- a/.github/workflows/build-phar.yml +++ b/.github/workflows/build-phar.yml @@ -59,7 +59,7 @@ jobs: uses: actions/attest-build-provenance@v3 with: subject-path: '${{ github.workspace }}/pie.phar' - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: pie-${{ github.sha }}.phar path: pie.phar diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1153f811..a938cbf1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,7 +36,7 @@ jobs: - name: Build documentation run: .github/docs/build-docs.sh - name: Fetch built PHAR from artifacts - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 with: name: pie-${{ github.sha }}.phar - name: Verify the PHAR diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cbee8ba..c376b2be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: contents: write steps: - name: Fetch built PHAR from artifacts - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 with: name: pie-${{ github.sha }}.phar - name: Verify the PHAR diff --git a/composer.json b/composer.json index ac9e3da0..55e06248 100644 --- a/composer.json +++ b/composer.json @@ -34,15 +34,15 @@ "fidry/cpu-core-counter": "^1.3.0", "illuminate/container": "^10.49.0", "psr/container": "^2.0.2", - "symfony/console": "^6.4.26", + "symfony/console": "^6.4.27", "symfony/event-dispatcher": "^6.4.25", "symfony/process": "^6.4.26", "thephpf/attestation": "^0.0.2", - "webmozart/assert": "^1.12" + "webmozart/assert": "^1.12.1" }, "require-dev": { "ext-openssl": "*", - "behat/behat": "^3.25.0", + "behat/behat": "^3.26.0", "bnf/phpstan-psr-container": "^1.1", "doctrine/coding-standard": "^14.0.0", "phpstan/phpstan": "^2.1.31", diff --git a/composer.lock b/composer.lock index 15618c34..ed925f11 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f8803ea4e33a255b7a715a4a0398ea78", + "content-hash": "e31801d88ecfc69c149ba2727af92874", "packages": [ { "name": "composer/ca-bundle", @@ -1388,16 +1388,16 @@ }, { "name": "symfony/console", - "version": "v6.4.26", + "version": "v6.4.27", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f" + "reference": "13d3176cf8ad8ced24202844e9f95af11e2959fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f", - "reference": "492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f", + "url": "https://api.github.com/repos/symfony/console/zipball/13d3176cf8ad8ced24202844e9f95af11e2959fc", + "reference": "13d3176cf8ad8ced24202844e9f95af11e2959fc", "shasum": "" }, "require": { @@ -1462,7 +1462,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.26" + "source": "https://github.com/symfony/console/tree/v6.4.27" }, "funding": [ { @@ -1482,7 +1482,7 @@ "type": "tidelift" } ], - "time": "2025-09-26T12:13:46+00:00" + "time": "2025-10-06T10:25:16+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1783,16 +1783,16 @@ }, { "name": "symfony/finder", - "version": "v6.4.24", + "version": "v6.4.27", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "73089124388c8510efb8d2d1689285d285937b08" + "reference": "a1b6aa435d2fba50793b994a839c32b6064f063b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/73089124388c8510efb8d2d1689285d285937b08", - "reference": "73089124388c8510efb8d2d1689285d285937b08", + "url": "https://api.github.com/repos/symfony/finder/zipball/a1b6aa435d2fba50793b994a839c32b6064f063b", + "reference": "a1b6aa435d2fba50793b994a839c32b6064f063b", "shasum": "" }, "require": { @@ -1827,7 +1827,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.24" + "source": "https://github.com/symfony/finder/tree/v6.4.27" }, "funding": [ { @@ -1847,7 +1847,7 @@ "type": "tidelift" } ], - "time": "2025-07-15T12:02:45+00:00" + "time": "2025-10-15T18:32:00+00:00" }, { "name": "symfony/polyfill-ctype", @@ -2484,16 +2484,16 @@ }, { "name": "webmozart/assert", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "541057574806f942c94662b817a50f63f7345360" + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/541057574806f942c94662b817a50f63f7345360", - "reference": "541057574806f942c94662b817a50f63f7345360", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/9be6926d8b485f55b9229203f962b51ed377ba68", + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68", "shasum": "" }, "require": { @@ -2536,24 +2536,24 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.12.0" + "source": "https://github.com/webmozarts/assert/tree/1.12.1" }, - "time": "2025-10-20T12:43:39+00:00" + "time": "2025-10-29T15:56:20+00:00" } ], "packages-dev": [ { "name": "behat/behat", - "version": "v3.25.0", + "version": "v3.26.0", "source": { "type": "git", "url": "https://github.com/Behat/Behat.git", - "reference": "bc7f149dde1cd0da82616e6b280e1c9be2ee53e1" + "reference": "1b6b08efa995fe4135901b862d112adc7e95ecbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Behat/Behat/zipball/bc7f149dde1cd0da82616e6b280e1c9be2ee53e1", - "reference": "bc7f149dde1cd0da82616e6b280e1c9be2ee53e1", + "url": "https://api.github.com/repos/Behat/Behat/zipball/1b6b08efa995fe4135901b862d112adc7e95ecbb", + "reference": "1b6b08efa995fe4135901b862d112adc7e95ecbb", "shasum": "" }, "require": { @@ -2562,7 +2562,7 @@ "composer/xdebug-handler": "^1.4 || ^2.0 || ^3.0", "ext-mbstring": "*", "nikic/php-parser": "^4.19.2 || ^5.2", - "php": "8.1.* || 8.2.* || 8.3.* || 8.4.* ", + "php": ">=8.1 <8.5", "psr/container": "^1.0 || ^2.0", "symfony/config": "^5.4 || ^6.4 || ^7.0", "symfony/console": "^5.4 || ^6.4 || ^7.0", @@ -2573,6 +2573,7 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.68", + "opis/json-schema": "^2.5", "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^9.6", "rector/rector": "2.1.7", @@ -2632,9 +2633,9 @@ ], "support": { "issues": "https://github.com/Behat/Behat/issues", - "source": "https://github.com/Behat/Behat/tree/v3.25.0" + "source": "https://github.com/Behat/Behat/tree/v3.26.0" }, - "time": "2025-10-03T20:14:49+00:00" + "time": "2025-10-29T09:46:14+00:00" }, { "name": "behat/gherkin", @@ -2976,16 +2977,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.6.1", + "version": "v5.6.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" + "reference": "3a454ca033b9e06b63282ce19562e892747449bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", + "reference": "3a454ca033b9e06b63282ce19562e892747449bb", "shasum": "" }, "require": { @@ -3028,9 +3029,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2" }, - "time": "2025-08-13T20:13:15+00:00" + "time": "2025-10-21T19:32:17+00:00" }, { "name": "phar-io/manifest", diff --git a/src/ComposerIntegration/PhpBinaryPathBasedPlatformRepository.php b/src/ComposerIntegration/PhpBinaryPathBasedPlatformRepository.php index a73bfaec..7dd5d505 100644 --- a/src/ComposerIntegration/PhpBinaryPathBasedPlatformRepository.php +++ b/src/ComposerIntegration/PhpBinaryPathBasedPlatformRepository.php @@ -124,7 +124,7 @@ private function packageForExtension(string $name, string $prettyVersion): Compl private function detectLibraryWithPkgConfig(string $alias, string $library): void { try { - $pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 10); + $pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 30); } catch (ProcessFailedException) { return; } diff --git a/test/unit/ComposerIntegration/PhpBinaryPathBasedPlatformRepositoryTest.php b/test/unit/ComposerIntegration/PhpBinaryPathBasedPlatformRepositoryTest.php index 9d1f593f..64716ed3 100644 --- a/test/unit/ComposerIntegration/PhpBinaryPathBasedPlatformRepositoryTest.php +++ b/test/unit/ComposerIntegration/PhpBinaryPathBasedPlatformRepositoryTest.php @@ -188,7 +188,7 @@ public static function installedLibraries(): array ], static function (array $pkg): bool { try { - Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 10); + Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 30); return true; } catch (ProcessFailedException) {