Task #104994
Updated by Rafael Kähm 2 months ago
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":https://github.com/TYPO3/typo3/tree/12.4 in own composer project.
All sysext/*/composer.json files must get proper aliases, to be compatible with setup like described in "Steps to reproduce".
h3. Steps to reproduce:
*Clone the TYPO3 mono-repo into TYPO3-Core_Monorepo 12.4 branch into @TYPO3-Core_Monorepo@ directory.*
<pre><code class="shell">
git clone -b 12.4 https://github.com/TYPO3/typo3.git TYPO3_Core_Monorepo
</code></pre>
*Copy following to root @composer.json@*
<pre><code class="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"
},
}
</code></pre>
*Try to install that project with composer*
<pre><code class="shell">
composer install
</code></pre>
*You will get ~40 Errors about version mismatch.*
---
Patch for 12.4 branch:
Just find and replace @"dev-main": "12.4.x-dev"@ by @"dev-12.4": "12.4.x-dev"@
---
h2. Purpose/Background
I want to make a TYPO3 core patches, but test them within EXT:solr setup before pushing.