Open antonmedv opened 7 months ago
Thanks @antonmedv, I was going to a new issue but let's keep all here. The problem seems to occur only when a deploy is made from Windows to Linux, resulting in an invalid _releaselog file format. Each line are not properly escaped (resulting in JSON without double quotes) so _releaseslog skips all invalid releases.
I think the bug was introduced on 7.1.0 release, because prior to january 2023 the _releaselog seems to be OK.
Pull requests #3569 and #3603 must solve this problem...
Just to keep this updated: #3569 was discarded in favor of #3603, which was merged two weeks ago. Now waiting for a new release...
There is an estimated date for the next release? Thanks!
Will try to release today.
Thanks @antonmedv
This workaround solved the problem for us. Add to your deploy.php file:
Then, add
before('deploy:cleanup', 'fix:release_log');
to fix the log before the cleanup task.Originally posted by @david-windsock in https://github.com/deployphp/deployer/discussions/3511#discussioncomment-7690796
Upvote & Fund