Describe the bug
The make file doesn't handle paths with spaces correctly. make clean wiped whole folders and I didn't know why, until I printed out the BACKEND_FOLDER.
My actual path is:
/Users/name/Repositories/Plone/Upgrade Plone Packages/new-packages/my.project
but the BACKEND_FOLDER in the makefile is for some reason resolved to:
/Users/name/Repositories/Plone . Packages/new-packages/my.project
and so make clean executes (@rm -rf $(VENV_FOLDER) pyvenv.cfg ...):
@rm -rf /Users/name/Repositories/Plone . Packages/new-packages/my.project pyvenv.cfg ...
which removes whole folders which were not supposed to be removed.
To Reproduce
Steps to reproduce the behavior:
- Create a project/addon inside a folder with spaces in the path
- Run any make command, e.g.
make install(preferably not make clean unless you want to wipe your folder like I accidentally did :))
- See error
Expected behavior
I expected that make clean wouldn't remove folders I still need.
Software:
- OS: macOS Sonoma 14.4.1
- Plone Version: 6.2.0
Describe the bug
The make file doesn't handle paths with spaces correctly.
make cleanwiped whole folders and I didn't know why, until I printed out theBACKEND_FOLDER.My actual path is:
/Users/name/Repositories/Plone/Upgrade Plone Packages/new-packages/my.projectbut the
BACKEND_FOLDERin the makefile is for some reason resolved to:/Users/name/Repositories/Plone . Packages/new-packages/my.projectand so make clean executes (
@rm -rf $(VENV_FOLDER) pyvenv.cfg ...):@rm -rf /Users/name/Repositories/Plone . Packages/new-packages/my.project pyvenv.cfg ...which removes whole folders which were not supposed to be removed.
To Reproduce
Steps to reproduce the behavior:
make install(preferably notmake cleanunless you want to wipe your folder like I accidentally did :))Expected behavior
I expected that
make cleanwouldn't remove folders I still need.Software: