drupal-composer / preserve-paths

A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.
28 stars 28 forks source link

Plugin fails to bring the custom code back to the webroot sometimes #38

Closed tormi closed 3 years ago

tormi commented 3 years ago

This is what I’ve just posted in our local dev-list. Has anyone else dealt with the issue and is there some solution available?

A note about developing Drupal 7 Composer projects locally - there’s a high risk you’re losing your uncommitted changes in the custom codebase if performing lando rebuild or composer * tasks because of how "drupal-composer/preserve-paths" plugin works. Sometimes it fails to bring back the custom code to the webroot and only way to resolve this is git reset --hard. That of course means all the code changes will be gone. So to reduce that risk please stash or stage your precious work before rebuilding!

tormi commented 3 years ago

Resolved like this: https://github.com/wunderio/drupal7-project/commit/e23a54471fc3a1ee3fd30bd8d4ce14adc6fbc8d7 :)