Problem/Motivation
#2867757: Improve instructions for updating composer.json and /vendor gets the docs out the door so people don't break their sites.
This issue discusses some finer points, such as whether or not to add --no-dev.
See #2867757-41: Improve instructions for updating composer.json and /vendor:
+++ b/core/UPDATE.txt
@@ -64,15 +64,51 @@ following the instructions in the INTRODUCTION section at the top of this file:
+ Note, if you want to only update drupal/core the following command will
+ probably work:
+
+ /PATH/TO/composer update drupal/core symfony/* --with-all-dependencies
Are we sure that symfony/* is needed here? #36 explains the initial rationale for that, but are we sure those problems weren't a consequence of https://github.com/composer/composer/issues/4795, which is now fixed with --with-all-dependencies as per https://github.com/composer/composer/issues/6661?
and #2867757-42: Improve instructions for updating composer.json and /vendor:
+++ b/core/UPDATE.txt
@@ -64,15 +64,51 @@ following the instructions in the INTRODUCTION section at the top of this file:
+1. On a typical Unix/Linux command line, run the following command from the root
+ directory (replace /PATH/TO/composer with the appropriate location for your
+ system):
+
+ /PATH/TO/composer update
Maybe say --no-dev, or add a comment that it's a good idea to add --no-dev to production for security reasons.
Proposed resolution
Remaining tasks
- Hash out a list of "finer points" to be in scope for the issue.
- Come up with good answers to the points.
- Patch UPDATE.txt
- Review / churn / RTBC
- Commit
Comments
Comment #2
dwwWhat other "finer points" are in scope here that need to be hashed out and addressed?
Thanks,
-Derek
Comment #3
mile23Updated IS with the comments that gave life to this issue.
Comment #4
cilefen commentedComment #6
MixologicI think that this is going to need updating once we get more stuff done in 8.8.0
Comment #14
quietone commentedI think this is outdated. UPDATE.txt has a link to https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-com... for updating via composer. The goal now would be to keep those instructions correct and up to date.
I am closing this as outdated.