#104994Set proper branch alias for supported release branches (incl. ELTS)
Description
TYPO3s release branches do not have proper extra.branch-alias settings.
- 12.4 https://github.com/TYPO3/typo3/blob/15254c52d55745dea205aeed9a72c189a69e0795/typo3/sysext/core/composer.json#L102
- 11.5 https://github.com/TYPO3/typo3/blob/21a80869ff4e46ad72ab9852f826783775c39d98/typo3/sysext/core/composer.json#L105
This leads to errors by requiring local TYPO3 mono-repo in own composer project.
All sysext/*/composer.json files must get proper aliases, to be compatible with setup like described in “Steps to reproduce”.
Steps to reproduce:
Clone the TYPO3 mono-repo into TYPO3-Core_Monorepo 12.4 branch into TYPO3-Core_Monorepo directory.
git clone -b 12.4 https://github.com/TYPO3/typo3.git TYPO3_Core_Monorepo
Copy following to root composer.json
{
"type": "project",
"repositories": {
"local-typo3-monorepo": {
"type": "path",
"url": "TYPO3-Core_Monorepo/typo3/sysext/*",
"options": {
"reference": "none",
"versions": {
"typo3/cms-adminpanel": "dev-12.4",
"typo3/cms-backend": "dev-12.4",
"typo3/cms-belog": "dev-12.4",
"typo3/cms-beuser": "dev-12.4",
"typo3/cms-core": "dev-12.4",
"typo3/cms-dashboard": "dev-12.4",
"typo3/cms-extbase": "dev-12.4",
"typo3/cms-extensionmanager": "dev-12.4",
"typo3/cms-felogin": "dev-12.4",
"typo3/cms-filelist": "dev-12.4",
"typo3/cms-filemetadata": "dev-12.4",
"typo3/cms-fluid": "dev-12.4",
"typo3/cms-fluid_styled_content": "dev-12.4",
"typo3/cms-form": "dev-12.4",
"typo3/cms-frontend": "dev-12.4",
"typo3/cms-impexp": "dev-12.4",
"typo3/cms-indexed_search": "dev-12.4",
"typo3/cms-info": "dev-12.4",
"typo3/cms-install": "dev-12.4",
"typo3/cms-linkvalidator": "dev-12.4",
"typo3/cms-lowlevel": "dev-12.4",
"typo3/cms-opendocs": "dev-12.4",
"typo3/cms-reactions": "dev-12.4",
"typo3/cms-recycler": "dev-12.4",
"typo3/cms-redirects": "dev-12.4",
"typo3/cms-reports": "dev-12.4",
"typo3/cms-rte_ckeditor": "dev-12.4",
"typo3/cms-scheduler": "dev-12.4",
"typo3/cms-seo": "dev-12.4",
"typo3/cms-setup": "dev-12.4",
"typo3/cms-styleguide": "dev-12.4",
"typo3/cms-sys_note": "dev-12.4",
"typo3/cms-tstemplate": "dev-12.4",
"typo3/cms-viewpage": "dev-12.4",
"typo3/cms-webhooks": "dev-12.4",
"typo3/cms-workspaces": "dev-12.4"
}
}
}
},
"config": {
"allow-plugins": true,
"platform": {
"php": "8.1"
},
"sort-packages": true,
"preferred-install": {
"typo3/cms-core": "source",
"*": "dist"
}
},
"require": {
"typo3/cms-about": "12.4.x-dev",
"typo3/cms-adminpanel": "12.4.x-dev",
"typo3/cms-backend": "12.4.x-dev",
"typo3/cms-belog": "12.4.x-dev",
"typo3/cms-beuser": "12.4.x-dev",
"typo3/cms-core": "12.4.x-dev",
"typo3/cms-extbase": "12.4.x-dev",
"typo3/cms-extensionmanager": "12.4.x-dev",
"typo3/cms-felogin": "12.4.x-dev",
"typo3/cms-filelist": "12.4.x-dev",
"typo3/cms-filemetadata": "12.4.x-dev",
"typo3/cms-fluid": "12.4.x-dev",
"typo3/cms-fluid-styled-content": "12.4.x-dev",
"typo3/cms-form": "12.4.x-dev",
"typo3/cms-frontend": "12.4.x-dev",
"typo3/cms-impexp": "12.4.x-dev",
"typo3/cms-info": "12.4.x-dev",
"typo3/cms-install": "12.4.x-dev",
"typo3/cms-lowlevel": "12.4.x-dev",
"typo3/cms-recordlist": "12.4.x-dev",
"typo3/cms-redirects": "12.4.x-dev",
"typo3/cms-reports": "12.4.x-dev",
"typo3/cms-rte-ckeditor": "12.4.x-dev",
"typo3/cms-scheduler": "12.4.x-dev",
"typo3/cms-seo": "12.4.x-dev",
"typo3/cms-setup": "12.4.x-dev",
"typo3/cms-sys-note": "12.4.x-dev",
"typo3/cms-t3editor": "12.4.x-dev",
"typo3/cms-tstemplate": "12.4.x-dev",
"typo3/cms-viewpage": "12.4.x-dev"
},
}
Try to install that project with composer
composer install
You will get ~40 Errors about version mismatch.
Problem 1
- Root composer.json requires typo3/cms-about 12.4.x-dev (exact version match), found typo3/cms-about[dev-main, v8.7.7, ..., 8.7.x-dev, v9.0.0, ..., 9.5.x-dev, v10.0.0, ..., 10.4.x-dev] but it does not match the constraint.
Problem 2
- Root composer.json requires typo3/cms-adminpanel 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-adminpanel[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-adminpanel[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 3
- Root composer.json requires typo3/cms-backend 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-backend[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-backend[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 4
- Root composer.json requires typo3/cms-belog 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-belog[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-belog[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 5
- Root composer.json requires typo3/cms-beuser 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-beuser[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-beuser[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 6
- Root composer.json requires typo3/cms-core 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-core[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-core[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 7
- Root composer.json requires typo3/cms-extbase 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-extbase[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-extbase[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 8
- Root composer.json requires typo3/cms-extensionmanager 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-extensionmanager[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-extensionmanager[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Problem 9
- Root composer.json requires typo3/cms-felogin 12.4.x-dev (exact version match), it is satisfiable by typo3/cms-felogin[12.4.x-dev] from composer repo (https://repo.packagist.org) but typo3/cms-felogin[dev-12.4] from path repo (TYPO3-Core_Monorepo/typo3/sysext/*) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
etc. etc. .........
—-
Patch for 12.4 branch:
Just find and replace "dev-main": "12.4.x-dev" by "dev-12.4": "12.4.x-dev"
—-
Purpose/Background
I want to make a TYPO3 core patches, but test them within EXT:solr setup before pushing.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[TASK] Set proper branch alias for supported release branches (incl. ELTS) Resolves: #104994 Releases: main