reanahub / reana

REANA: Reusable research data analysis platform
https://docs.reana.io
MIT License
123 stars 54 forks source link

reana-dev git-submodule does not remove deleted files from destination #761

Closed mdonadoni closed 8 months ago

mdonadoni commented 9 months ago

How to reproduce:

  1. Create a new file xyz.txt in reana-db
  2. Run reana-dev git-submodule --update
  3. Delete the file xyz.txt
  4. Run reana-dev git-submodule --update again

If you check the content of reana-server/modules/reana-db, you will see that xyz.txt is still present. This issue affects in particular alembic recipes, as deleted alembic migrations will be applied anyway to the database, even after running reana-dev git-submodule --update.