deployphp / deployer

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

No information about skiped task #3631

Closed tomaszkane closed 3 weeks ago

tomaszkane commented 1 year ago

I have a task:

task('yii2:db:create', function () {
    // something here
})
    ->select('foo')
;

when I run dep deploy on selector that not match the ->selector('foo') my task is skipped, but deploy logs not show that. Instead it show something like:

task yii2:db:create
done yii2:db:create 0ms

which is confusing :-|

I believe it should be something like:

task yii2:db:create
skipped yii2:db:create 0ms

Upvote & Fund

Fund with Polar

tomaszkane commented 1 year ago

More info:

dep deploy {selector}

task foo
task boo

dep deploy {selector} -v

task foo
[tag] something here
task boo

When running deploy without any verbose task 'foo' (executed) and 'boo' (skipped) is indistinguishable. With verbose we have some info but it's still confusing.

Schrank commented 1 year ago

We should use skip so it is in line with the 4 letter task and done. But I like the idea very much

github-actions[bot] commented 3 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 3 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]