Describe the bug
When running make install in a scaffolded addon project by uvx cookieplone the installation fails when jq is not installed. The tool jq is not listed as a requirement for cookieplone.
This leads to an empty version string:
Makefile (addon)
export PLONE_VERSION := $(shell echo '$(REPOSITORY_SETTINGS)' | jq -r '.backend.base_package_version')
Makefile (backend):
@echo '-c https://dist.plone.org/release/$(PLONE_VERSION)/constraints.txt' > requirements.txt
The variable $(PLONE_VERSION) is empty resulting in Exception: Failed to fetch 'https://dist.plone.org/release//constraints.txt': HTTP Error 404: Not Found
instead of https://dist.plone.org/release/6.1.4/constraints.txt
To Reproduce
Steps to reproduce the behavior:
- Check that
jq is not installed
- Create a addon project scaffold with
uvx cookieplone
- Run
make install
- See error
Describe the bug
When running
make installin a scaffolded addon project byuvx cookieplonethe installation fails whenjqis not installed. The tooljqis not listed as a requirement for cookieplone.This leads to an empty version string:
Makefile (addon)
export PLONE_VERSION := $(shell echo '$(REPOSITORY_SETTINGS)' | jq -r '.backend.base_package_version')Makefile (backend):
@echo '-c https://dist.plone.org/release/$(PLONE_VERSION)/constraints.txt' > requirements.txtThe variable $(PLONE_VERSION) is empty resulting in
Exception: Failed to fetch 'https://dist.plone.org/release//constraints.txt': HTTP Error 404: Not Foundinstead of
https://dist.plone.org/release/6.1.4/constraints.txtTo Reproduce
Steps to reproduce the behavior:
jqis not installeduvx cookieplonemake install