File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717- Fixed backward compatibility of bin/console for symfony4 recipe
1818- Keep consistency with executable naming in lock recipe
1919- Unexpected exception in config:* tasks when no stage is defined for host [ #1909 ] [ #1909 ] [ #1909 ]
20+ - Fixed parsing of installed.json by Composer version 2
21+ - Fixed only call bin/php on the composer.phar file
2022
2123
2224## v6.7.3
Original file line number Diff line number Diff line change @@ -106,7 +106,9 @@ $version = 'master';
106106
107107$ installedFile = $ vendorDir . '/composer/installed.json ' ;
108108if (is_readable ($ installedFile )) {
109- $ packages = json_decode (file_get_contents ($ installedFile ), true );
109+ $ installed = json_decode (file_get_contents ($ installedFile ), true );
110+ $ packages = $ installed ['packages ' ] ?? $ installed ;
111+
110112 foreach ($ packages as $ package ) {
111113 if ($ package ['name ' ] === 'deployer/deployer ' ) {
112114 $ version = $ package ['version ' ];
Original file line number Diff line number Diff line change 118118
119119 if (empty ($ composer )) {
120120 run ("cd {{release_path}} && curl -sS https://getcomposer.org/installer | {{bin/php}} " );
121- $ composer = '{{release_path}}/composer.phar ' ;
121+ $ composer = '{{bin/php}} {{ release_path}}/composer.phar ' ;
122122 }
123123
124- return ' {{bin/php}} ' . $ composer ;
124+ return $ composer ;
125125});
126126
127127set ('bin/symlink ' , function () {
You can’t perform that action at this time.
0 commit comments