andres-montanez / Magallanes

The PHP Deployment Tool
https://magephp.com
MIT License
691 stars 169 forks source link

[Bug] Deployment fails if tar file gets lost #464

Open mimmi20 opened 1 year ago

mimmi20 commented 1 year ago

We are trying to move away from Phing and are testing also Magallanes.

We are using Releases and have set the following parameter to extract the tar file: "--recursive-unlink --extract --gzip --preserve-permissions --preserve-order --unlink-first -f".

But after the tar file is extracted successfully, the tar file itself is already removed. As the result of this, the deployment fails because the script can not delete the tar file.

The script should check if the tar file is still present before trying to delete it.

If I should create a PR, please let me know.