roots / wordpress

Automatically updated WordPress Composer package
https://roots.io/composer-wordpress-resources/
MIT License
169 stars 15 forks source link

Updating roots/wordpress deletes uploads folder #19

Closed katsar0v closed 2 years ago

katsar0v commented 4 years ago

Description

I am using roots/wordpress with composer and have my uploads folder mounted in docker. Whenever I run composer update, composer tries to delete and create the uploads folder which makes no sense

Steps to reproduce

  1. Install via composer require roots/wordpress
  2. Run composer update after a new wordpress version is out and you already have some uploaded files

Expected behavior: -> I expect the uploads folder not to be touched

Actual behavior: -> I get this:

Updates: roots/wordpress:5.5.1
  - Updating roots/wordpress (5.5 => 5.5.1): 

  [RuntimeException]                 
  Could not delete web/app/uploads:  

Reproduces how often: -> 100%

LeoColomb commented 2 years ago

With the changes from latest 6.0 release, the content folder is not even present the package. In any case, the reported behavior looks to come more from post-upgrade script than the actual roots/wordpress installer.