Commit 333abcf
committed
bug #978 [Bug] Fix Flex not installing recipes while it is being upgraded (weaverryan)
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
[Bug] Fix Flex not installing recipes while it is being upgraded
Fixes #977
Here's the lifecycle:
A) Packages are installed/updated and `Flex::recordOperations()` is called.
B) Composer sees that `symfony/flex` is updated and unloads the plugin and reloads it under a new `Symfony\Flex\Flex_composer_tmp0` class. This results in the `Flex::$operations` property being lost.
C) And so, no recipes are installed.
This PR "stashes" the operations directly on `Symfony/Flex/Flex` where we then read them later. Tested locally. Amazing, it seems to work perfectly.
Also, backports #976 to 1.x - my fault for making the PR on the wrong branch.
Cheers!
Commits
-------
62f7874 [Bug] Fix Flex not installing recipes while it is being upgraded1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
299 | 308 | | |
300 | 309 | | |
301 | 310 | | |
| 311 | + | |
| 312 | + | |
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
| |||
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
557 | 570 | | |
558 | 571 | | |
559 | 572 | | |
| |||
0 commit comments