diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-01 21:43:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-01 21:43:19 +0900 |
| commit | 2f857cc1ddfde54553829ea5b3a3ac8b59f7f63a (patch) | |
| tree | dd2bc38a76d8b8b95b9d09d1beadbcdf0a6953d5 /crates/mozart/src/commands/clear_cache.rs | |
| parent | 4453aaddb071515e4b2c263864bd00fe7fa2eee6 (diff) | |
| download | php-mozart-2f857cc1ddfde54553829ea5b3a3ac8b59f7f63a.tar.gz php-mozart-2f857cc1ddfde54553829ea5b3a3ac8b59f7f63a.tar.zst php-mozart-2f857cc1ddfde54553829ea5b3a3ac8b59f7f63a.zip | |
feat(install): verify platform requirements before install_from_lock
Mirrors Composer's platform-requirements check during
Installer::doInstall(): merge platform requires from the lock's
platform/platform-dev fields with the root composer.json
require/require-dev (composer.json wins on duplicate keys), then
verify them against the detected runtime platform. If any are missing
or unsatisfied, print the standard "Your lock file does not contain a
compatible set of packages" message followed by Problem 1..N entries
and exit with DEPENDENCY_RESOLUTION_FAILED (2) instead of silently
proceeding to "Nothing to install" with exit 0. Closes the gap
exercised by the outdated-lock-file-with-new-platform-reqs-fails
installer fixture.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/clear_cache.rs')
0 files changed, 0 insertions, 0 deletions
