aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/run_script.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-01 21:32:01 +0900
committernsfisis <nsfisis@gmail.com>2026-05-01 21:32:01 +0900
commit4453aaddb071515e4b2c263864bd00fe7fa2eee6 (patch)
tree1e3473ad0094b9bbae6b14b18e454b8227633cff /crates/mozart/src/commands/run_script.rs
parent41655c14ad33f9eed6efcc4490a604a0e2defa4b (diff)
downloadphp-mozart-4453aaddb071515e4b2c263864bd00fe7fa2eee6.tar.gz
php-mozart-4453aaddb071515e4b2c263864bd00fe7fa2eee6.tar.zst
php-mozart-4453aaddb071515e4b2c263864bd00fe7fa2eee6.zip
feat(install): verify lock file satisfies composer.json requires
Mirrors Composer's Installer::doInstall() check: before installing from an existing composer.lock, walk every root require (and require-dev in dev mode) and confirm the lock contains a satisfying package. If any are missing or fail the constraint, print the standard bullet-list diagnostic and exit with LOCK_FILE_INVALID (4) instead of blindly attempting to install and failing later with a misleading "no dist or source information" error. Closes the gap exercised by the outdated-lock-file-fails-install installer fixture. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/run_script.rs')
0 files changed, 0 insertions, 0 deletions