-
-
Notifications
You must be signed in to change notification settings - Fork 14
-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.4.9+ still requires only core-bundle ^4.4.2 #27
Comments
Also should be fixed in the calendar bundle and probably others. |
Indeed. But when you change this for 4.4.13, the release tags 4.4.9, 4.4.10, 4.4.11, 4.4.12 have to be deleted, otherwise the problem will continue to exist. Would that have any adverse affects? |
We must not delete tags. If necessary we can relocate them, but I don't know if it is necessary in this case. @contao/developers /cc |
Well as long as the 4.4.9 - 4.4.12 tags with their current content are there in the news-bundle etc., the problem will exist, since any composer update will always at least update those bundles to 4.4.12, even if the core-bundle cannot be updated to 4.4.9+, which will lead to this error. The circumstances under which I discovered this are probably pretty rare. I doubt there are many hostings out there that provide PHP 7.0 with a version lower than 7.0.8. However theoretically, there could be other reasons (i.e. other dependencies) that might prevent the core-bundle from being updated to a higher version which are not immediately apparent. |
As discussed in Mumble on January 18th, 2018, we do not want to relocate the tags, because it seems wrong. Instead we need to prevent this from happening in the future, which e.g. could be accomplished by using |
E.g. in the calendar bundle: {
"name": "contao/calendar-bundle",
"type": "contao-bundle",
"description": "Adds calendar functionality to Contao 4",
"license": "LGPL-3.0+",
"require": {
"php": "^7.1",
"contao/core-bundle": "self.version",
"symfony/framework-bundle": "^3.4"
}, |
Jordi's comments on "require self.version": |
Besides Jordi's comments, using |
Of course you cannot have the core bundle in version |
As far as I understand it, Jordi’s comment are not about |
I think you can, by just writing |
Implemented as discussed. |
This adjustment is missing in the contao/manager-bundle. If you are using a PHP version that is |
contao/core-bundle 4.4.9 introduced the Model::isPreviewMode function, which is also used in contao/news-bundle (and the other bundles) starting with 4.4.9.
However, the composer.json was never changed to reflect that new dependency, it still only says:
So if the core-bundle cannot be updated to 4.4.9+ but the news-bundle for example can be updated to 4.4.9+, you will get the error
These circumstances can happen, if your PHP version is
>=7.0.0,<7.0.8
. The contao/core-bundle has a dependency onsince version 4.4.8. Thus contao/core-bundle cannot be updated to 4.4.8+ under PHP
>=7.0.0,<7.0.8
, because symfony/console 3.3.7+ requires at least PHP 7.0.8. The contao/news-bundle can be updated to 4.4.12 without any problems under PHP>=7.0.0,<7.0.8
.The text was updated successfully, but these errors were encountered: