Open remil1000 opened 2 years ago
The issue comes from a deprecation in CakePHP 4.4:
Since we don't pin the Cake version, the release of 4.4 started causing the warnings.
Also, my guess is that debug mode is enabled, otherwise those messages shouldn't be emitted at all.
That's quite interesting
https://github.com/cerebrate-project/cerebrate/blob/main/composer.json#L12 - should be using version 4.3
However it's not honored in the v1.6 container
$ docker run --rm -it --entrypoint /bin/bash ghcr.io/cerebrate-project/cerebrate:v1.6
www-data@53fc193afece:~/html$ grep 'cake.*4.3' composer.json
"cakephp/cakephp": "^4.3",
www-data@53fc193afece:~/html$ grep 'cake.*4.4.0' composer.lock
"cakephp/cakephp": "^4.4.0",
That's interesting o.O
actually it's per composer specification
https://getcomposer.org/doc/articles/versions.md#caret-version-range-
The ^ operator behaves very similarly, but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0
Interesting, though it makes sense. Either way, good idea for us to nip it in the bud as soon as possible and align with 4.4.
the following change in the composer.json
made the trick
- "cakephp/cakephp": "^4.3",
+ "cakephp/cakephp": ">=4.3.0 <4.4",
I'm not sure I understand the way ~
or ^
are working with composer
although shipping the composer.lock
is ultimately the best way to proceed
When using published v1.6
ghcr.io/cerebrate-project/cerebrate:v1.6
can't get the homepage to load, I only getbut still with a 200 http status code
It seems this what introduced between v1.5 and v1.6
I tried to rebuild image v1.5 and v1.6 locally and got the same issue Fetched the v1.5 image
composer.lock
file and rebuilt images (v1.5 and v1.6) and problem is goneI would advise to ship the
composer.lock
file in the repository to avoid future similar issueAttached are the two
composer.lock
file, working, and not working one from imageghcr.io/cerebrate-project/cerebrate:v1.5
and the other fromghcr.io/cerebrate-project/cerebrate:v1.6
nok-composer.lock.txt ok-composer.lock.txt