symfony / flex

Composer plugin for Symfony
MIT License
4.16k stars 183 forks source link

Correctly resolve the lock alias #960

Closed pierredup closed 1 year ago

pierredup commented 1 year ago

composer require lock doesn't resolve the lock alias because the package name resolution is skipped when the package argument is lock. This PR bypasses this specifically for the require command, so that composer require lock correctly resolved the alias, but composer update lock still skips the name resolution.

Reference: https://github.com/symfony/recipes/issues/1150

fabpot commented 1 year ago

Thank you @pierredup.