Skip to content

Adding a paragraph about updating multiple packages during an update #5336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cookbook/upgrade/_update_all_packages.rst.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Upgrading other Packages
~~~~~~~~~~~~~~~~~~~~~~~~

You may also want to upgrade the rest of your libraries. If you've done a
good job with your `version constraints`_ in ``composer.json``, you can do
this safely by running:
Expand Down
19 changes: 19 additions & 0 deletions cookbook/upgrade/_update_dep_errors.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Dependency Errors
~~~~~~~~~~~~~~~~~

If you get a dependency error, it may simply mean that you need to upgrade
other Symfony dependencies too. In that case, try the following command:

$ composer update symfony/symfony --with-dependencies

This updates ``symfony/symfony`` and *all* packages that it depends on, which will
include several other packages. By using tight version constraints in
``composer.json``, you can control what versions each library upgrades to.

If this still doesn't work, your ``composer.json`` file may specify a version
for a library that is not compatible with the newer Symfony version. In that
case, updating that library to a newer version in ``composer.json`` may solve
the issue.

Or, you may have deeper issues where different libraries depend on conflicting
versions of other libraries. Check your error message to debug.
2 changes: 2 additions & 0 deletions cookbook/upgrade/major_version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Next, use Composer to download new versions of the libraries:

$ composer update symfony/symfony

.. include:: /cookbook/upgrade/_update_dep_errors.rst.inc

.. include:: /cookbook/upgrade/_update_all_packages.rst.inc

.. _upgrade-major-symfony-after:
Expand Down
2 changes: 2 additions & 0 deletions cookbook/upgrade/minor_version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Next, use Composer to download new versions of the libraries:

$ composer update symfony/symfony

.. include:: /cookbook/upgrade/_update_dep_errors.rst.inc

.. include:: /cookbook/upgrade/_update_all_packages.rst.inc

.. _`upgrade-minor-symfony-code`:
Expand Down