I have below content in my composer.json:
{ "require": { "symfony/class-loader": "2.3.*", "symfony/event-dispatcher": "2.3.*", "liip/drupal-testing": "dev-master", } } This project has been in production for a while and I want to add a new package (dejanb/stomp-php) without updating any of the existing packages. Executing below command adds the new packages and made necessary changes to autoloader, composer.json and composer.lock files.
composer require --prefer-dist "fusesource/stomp-php:2.1.*" All good so far. Now found the the new packages I added doesn't provide all my requirements and I would need to apply my patch on top of it. So I forked it and committed changes.
Now I can do https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository to update my fork in composer.json and run composer update. However It updates all the the packages in composer.json.
Is there a way/command to add my new fork without update existing packages?
php composer.phar update vendor/package vendor/package2It will only update the vendor you need.