Commit e7f3f34
committed
bug #852 Flex recipe should always be installed first (HypeMC)
This PR was merged into the 1.x branch.
Discussion
----------
Flex recipe should always be installed first
I've noticed that when running `composer symfony:recipes:install --reset --force` the `symfony/webapp-meta` section is removed from the `.env` file:
```
symfony new --webapp sfwebapp
cd sfwebapp/
composer symfony:recipes:install --reset --force
```
results in:
```diff
-###> symfony/webapp-meta ###
-MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
-###< symfony/webapp-meta ###
```
This is because the [meta recipes have precedence](https://github.com/symfony/flex/blob/e9a1e596e18b5b2f337dcb5f942d598eaf9a5502/src/Flex.php#L778) over other recipes, so the `symfony/webapp-meta` recipe is installed first, but since the `symfony/flex` recipe that is installed later has a [default `.env` file](https://github.com/symfony/recipes/blob/c985160644792e891d5a6c6d5d4d1088bedbab6e/symfony/flex/1.0/.env), it overwrites everything.
This PR fixes the problem by making sure the `symfony/flex` recipe is always installed first, as was the case [previously](https://github.com/symfony/flex/pull/439/files#diff-0de31db49040778c07ce10b8959584b33d2ee5c880e4f8a7c19e4055f95ccbe9R583).
Commits
-------
1376339 Flex recipe should always be installed first2 files changed
+41
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
706 | 708 | | |
707 | | - | |
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| |||
748 | 749 | | |
749 | 750 | | |
750 | 751 | | |
| 752 | + | |
| 753 | + | |
751 | 754 | | |
752 | 755 | | |
753 | 756 | | |
| |||
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
778 | | - | |
| 781 | + | |
779 | 782 | | |
780 | 783 | | |
781 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
181 | 216 | | |
182 | 217 | | |
183 | 218 | | |
| |||
0 commit comments