-
Notifications
You must be signed in to change notification settings - Fork 939
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
Updating from drupal 8.4.4 to 8.4.5 do nothing due webflo/drupal-core-require-dev #362
Comments
True, the DX is not optimal because of this change. We should write some new documentation. //cc @alexpott |
Well the good thing is that at least they are being kept in sync. I assume that the webflo/drupal-core-require-dev requirement in composer.json was 8.4.4. Would a more relaxed requirement allow it to be updated when you update just core? |
same thing happens when I try to update drupal 8.4.5 to 8.5.0, composer won't update anything. even I run composer update drupal/core webflo/drupal-core-require-dev --with-dependencies, still no update is installed. please provide more information about how to update drupal core from 8.4 to 8.5, thanks! |
@webflo thank you, it works after I manually edit the composer.json
and run |
Maybe this really long command can be added to the "scripts" section? update-core maybe as a name? I think is really great the introduction of webflo/drupal-core-require-dev but I wish it had as minimal trade-offs as possible. |
@rodrigoaguilera out of interest is there a reason you are not doing just "composer update". Most of the problems come from trying to update just one thing where actually your project has a web of dependencies. I vote for not putting a command in scripts because you can't guarantee it is going to work. The next time it'll be something other than symfony/config |
Is just that we do not pin other dependencies in the root composer file and I am composer-savvy and I have no problem researching on why a package is not updating but I'm worried about other developers. The great thing is that this is just a template and I can add the script on my copy since I really trust symfony not break compatibility. I guess when the case is different than symfony/config someone with composer experience needs to help. |
@alexpott For the case of little projects, already in production, without DEV/STAGING even git repo I think a general update (composer update) is not the best, because as commented by @rodrigoaguilera , your main goal is just apply security updates without regressions risk. There are lots of websites / projects like this... And drupal 8, composer, etc. maybe are not doing easy for them (forget shared hosting, updates just downloading .tar.gz packages from drupal.org, etc.). For example, I've read about issues upgrading from 8.3 to 8.4 (and now to 8.5)... core/drush issues related to dependencies of symphony for drush 9, problems with drush < 8.115 , etc. etc. Really exhausted about lots of problems appear when just trying to apply a security update. Can little customers pay for it? Should they think in wordpress, etc? |
@calbasi well in an ideal world "composer update" would just work when it comes to updating your project and things would not break. Trying to do partial updates is tricky and there is no one composer command that we can communicate that will just update drupal/core on a project given that people are free to include whatever dependencies they like and these dependencies can cause issues. The reason symfony needs to be included to go from 8.4.x to 8.5.0 is because of something in drupal console. Next time it will be something different. Also being on the latest version of everything in your project is safer because if there is a security release for one of your dependencies and your project is up-to-date then it will be easier updating. Ie. the thing that needs updating might require everything else to be updated and if you've not done that then you've got problems. By telling people to partial updates we're just storing up problems for a later date. That said, I do understand that the Drupal 8.x minor update path has been really really painful because of the Symfony update to version 3 and issues with Drush. Now we've got to Symfony LTS release (3.4.x) this should not happen again in the Drupal 8 cycle. And also now that the recommended approach is to install Drush per project via composer we shouldn't have the complexities there either. Also we are considering doing security support for more than just the current minor - see https://www.drupal.org/project/drupal/issues/2945200. |
Thanks for your comments, @alexpott I appreciate them! |
https://orkjern.com/updating-to-drupal-85-with-composer not help.
|
@vistar the clue is in the error message - you need to change whatever you have set to config.platform.php to. It looks like someone has set it at PHP 7.0 but Drupal is not compatible with 7.0.0 it is compatible with 7.0.8 and up. |
I don't have a better solution for this atm, but the docs under https://github.com/drupal-composer/drupal-project#updating-drupal-core have a very similar command. |
Whoops sorry I posted my comment in the wrong project. Should have gone here webflo/drupal-core-require-dev#3 (comment) |
Yes, in an ideal world it would. Unfortunately, the world is not always ideal. For security updates we usually execute |
"symfony/*" was added to the update command because of a specific problem when upgrading Drupal 8.4.4 (because of a dependency in Drupal Console or something). As discussed in drupal-composer#362 next time the problem can be something completely different. Keeping "symfony/*" doesn't make any sense to me, but I might be wrong.
Hi, just trying to update with:
But composer don't update anything ;-)
Then:
Get:
So I should do:
to update drupal core...
But I wonder if this is a "by design" behavior... I don't think so...
The text was updated successfully, but these errors were encountered: