deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.56k stars 1.48k forks source link

CLI hangs when calling task with incompatible host select #3699

Closed SimJoSt closed 2 weeks ago

SimJoSt commented 1 year ago

We noticed that tasks that have been restricted to specific hosts with select() cause issues when run directly via the cli without a compatible host. For example, running the following command with the following task, will cause the cli to hang forever:

$ ./vendors/bin/dep single env=prod
task('single', function(){
    echo 'single';
})->select('env=dev');

If the task that is restricted to a host is invoked from a group task, this issue doesn't occur:

task('group', [
    'single'
]);

task('single', function(){
    echo 'single';
})->select('env=dev');

In this scenario, the cli ends the run without an issue.

Upvote & Fund

Fund with Polar

antonmedv commented 1 year ago

Hmmm, intresting.

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]