-
-
Notifications
You must be signed in to change notification settings - Fork 195
Improve discoverability of recipe changes #629
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
Comments
No changes in recipes are super important... It's never a must to sync recipes when upgrading to 5.1. |
I disagree a bit:
These changes are not important in the sense that your app breaks. Your app will keep working WITHOUT making these changes. The problem is that you are "left behind" with an "outdated way of doing things". For example, you read Symfony 5.1 docs and suddenly everything is different than your 5.1 app (because you didn't apply these recipe updates). |
I didn't know of Or when I start a new project, and realise they are different. My solution has been to create a new project every now and then and manually diff the files and then update my existing project.... so yeah, I'm in favour of Flex telling me when files it would set up are different to the versions I have (minus my edits). Adding "Run |
It would be nice if Or we could do it like package managers on Linux: create Or do both - create the new files with changes, then have a command that can find them and do the diffing and asks you for action (on Fedora/RHEL the But yeah, I definitely agree that this process should be better. At the very least the developers should be notified to run |
I rely on the "Living on the Edge" blog posts just to sort of keep up with changes. In addition to some sort of automated process I would suggest routinely adding a "New in 5.x: Recipe Changes" post which would detail any changes. I know, more work for Javier. But it might help. |
|
What is the difference between |
@liweiyi88 It's the same. |
@javiereguiluz @nicolas-grekas I think we can display an information message concerning recipes after each Firstly, that it's on each command and potentially secondly (if not too heavy) to check if recipes need to be updated |
I do believe a CHANGELOG somewhere somehow (at least for super important recipes like FrameworkBundle) would be nice too. I'm in charge of doing
Especially step (2) can be quite complex (and very complex if you aren't as used to github and git - which applies I think to most devs). E.g. the removal of The greatest solution would be to have an interactive |
Today I've started upgrading from 5.0 to 5.1. After composer changes, my Q&A test was broken over this deprecation notice:
I remembered config/bootstrap.php is doing something with Dotenv and wanted to check the contents of bootstrap.php in Symony 5.1 (which I checked out through I searched "bootstrap.php" on the SymfonyDevs Slack and found a post by @javiereguiluz about |
Just to add another example: in this discussion -> symfony/demo#1117 (comment) @wouterj mentioned the |
@javiereguiluz I opened a PR some time ago to add an explanation section to update the symfony recipes here : symfony/symfony-docs#13320. With the many returns, I don't think this is enough. Some idea on RFC #518 like |
I think it would be cool if |
I don't think hacking existing composer command to make them show more stuff is a good idea:
|
@stof This is a good argument against, for example @elkuku 's idea of making Your argument does not hold, in my opinion, to just showing a simple information box. Just like the boxes shown after creating a new Symfony project ("What's next?") |
even an info box could mess the tooling processing the output of the command |
and there is also not an official extension point to insert extra output at the end of the |
I did not mean maxhelias commented on Jun 8
|
This PR was merged into the 1.8-dev branch. Discussion ---------- Improve discoverability of 'composer recipes' Discovering the `composer recipes` command during composer install/update Fix issue #629 and move forward #518 - 8)  Commits ------- eae35f1 Improve discoverability of 'composer recipes'
I think we can close this issue. The Symfony docs is updated : symfony/symfony-docs#13320 and a warning is displayed on each However, we should keep #575 to improve the following page https://symfony.com/doc/5.3/quick_tour/flex_recipes.html |
I think #629 (comment) still applies |
I think this will be solved by #845. In addition to the new |
Related to this -> symfony/symfony-docs#13753. A user complained that it wasn't easy to discover that there were some very important changes from Symfony 5.0 to 5.1 in some recipes (mostly about the
Kernel.php
file).It's true that developers know about
composer sync-recipes
, etc. but maybe we should be more proactive when upgrading packages to remind devs that there might be super important changes in the recipes of their dependencies. I don't know exactly how to solve this issue ... but I think this is an issue.Thanks!
The text was updated successfully, but these errors were encountered: