Support the ongoing development of Laravel.io →
Installation Configuration Blade

I'm experiencing something odd with Envoy, and I don't where I'm going wrong. It seems to ignore some bash commands unless there is an "echo" statement before it.

So I have this:

@task('composer')
    cd {{ $release }}
    composer install --prefer-dist
@endtask

But composer never gets run. If I change the above to

@task('composer')
    cd {{ $release }}
    echo ""
    composer install --prefer-dist
@endtask

Then it works fine. I'm using a macro which runs 7 tasks. I've done a few searches and can't seem to find anyone else with the same problem. Was hoping someone knows whats going on.

Last updated 3 years ago.
0

Same issues to me. I ran with --pretend and I see no carriage return at the end of line. try:

envoy run composer --pretend

Otherwise if you insert extra empty lines that will do the trick for you

@task('composer')
    cd {{ $release }}

    composer install --prefer-dist
@endtask
Last updated 9 years ago.
0

Thanks. That worked.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.