question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downloaded `deployer.phar` should be the latest version

See original GitHub issue

I have this error when running my deployment workflow:

Capture d’écran 2022-09-08 à 14 36 41

It turns out the version downloaded via https://deployer.org/deployer.phar is 6.8.0. I think the action should download the latest version available by default, or maybe a required parameter should be added to select the major version of the downloaded deployer.phar. Linked to https://github.com/deployphp/deployer/issues/3225.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
benjaminmalcommented, Sep 8, 2022

A workaround I found is to use composer to download the last version, and set deployer-binary parameter:

            -   name: Download `deployer.phar`
                run: composer global require deployer/deployer --no-interaction --verbose --ansi

            -   name: Get composer global bin-dir path
                id: composer-bin-dir
                run: echo "::set-output name=path::$(composer global config bin-dir --absolute)"

            -   name: Deploy
                uses: deployphp/action@v1
                with:
                    dep: deploy production
                    deployer-binary: ${{ steps.composer-bin-dir.outputs.path }}/dep
                    private-key: ${{ secrets.HOST_SSH_KEY }}
1reaction
TTATPuOTcommented, Oct 11, 2022

Same error. Thanks a lot @benjaminmal for working solution.

I also add

tools: composer:v2

to shivammathur/setup-php@v2 for composer installs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - Deployer
To install Deployer as phar archive, run the following commands: ... If you need another version of Deployer, you can find it on...
Read more >
Deployer composer installation failed · Issue #3104 - GitHub
I tried to install the RC version using composer require --dev deployer/deployer:v7.0.0-rc.8 and it works. Now I'm trying to enter the following ...
Read more >
deployer/phar-update - Packagist
Summary · check for newer versions of the Phar · download the Phar. verify download by SHA1 checksum, and public key if available...
Read more >
Installing Deployer - Code Review Videos
In this video you will learn how to install Deployer using the three available methods - composer, downloading the phar file, or building...
Read more >
Installation - Deployer
To install Deployer as phar archive globally, run the following commands: ... If you need another version of Deployer, you can find it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found