console-parallelization: Error when command is executed outside bin/ directory.
Currently commands that implement the Parallelization trait must be executed in bin/
.
Example: cd ~/www/bin && bin/console pimcore:thumbnails:image --processes 1
-> works.
Example: cd ~www && ~/www/bin/console pimcore:thumbnails:image --processes 1
-> error message: Expected a string. Got: boolean.
Reason: $consolePath = realpath(getcwd().'/bin/console');
returns false
if the script is executed from the home directory (debian).
I don’t have a solution right now, but according to https://www.php.net/manual/en/function.getcwd.php:
On some Unix variants, getcwd() will return FALSE if any one of the parent directories does not have the readable or search mode set, even if the current directory does.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (7 by maintainers)
Something’s not right…
v1.2.0
andv1.2.1
are tagged onmaster
, whilev1.2.2
is tagged on1.x
(and points to the same commit asv1.1.0
), while in the release notes it says that it contains #48, which however was merged intomaster
and not into1.x
.So when users run
composer update
, they lose the changes from master that were already inv1.2.0
andv1.2.1
.What should have been done instead is to merge
1.x
into master and release this asv1.2.2
, I suppose.@theofidry any updates on that, actually it would be quite urgent 😐 Thanks in advance!
I agree Actually https://github.com/webmozarts/console-parallelization/blob/master/composer.json#L18 is causing the composer conflict now.