GoodDAPP
GoodDAPP copied to clipboard
Resolve "Failed to prepare repo" issue during production deployment
Sometimes the following error happens:
Failing build: Failed to prepare repo
2:34:06 PM: Failed during stage 'preparing repo': exit status
If re-deploy manually using 'clean cache & deploy' - deploy passes
- We could try to use 'clean cache' strategy automatically on each production deployment There's no option to enable it during CI but it's possible to add workaround - remove cache after deployment (so next deployment will be performed without cache). https://community.netlify.com/t/how-to-clear-cache-on-branch-deploy/5521 https://community.netlify.com/t/cache-issue-on-netlify/8238
But those articles are looking outdated, i think we could spent some tome for research and find a more fresh solution
- Instead of workaround we could try to research the reasons why 'Failed to prepare repo' error appears and try to fix everything causing it