Closed Tuurlijk closed 9 years ago
Is there a reason you choose typo3_console over coreapi? https://github.com/TYPO3-coreapi/ext-coreapi
typo3_console allows for installing a TYPO3 instance by passing in several command line options like database, username, password etc. And that is exactly what I want to do.
That makes sense. I have seen the ext, but not studied closely enough, I can tell :)
Well, I ran into this showstopper. I have not tried to find a fix for it yet. Just wanted to let you know.
TASK: [typo3 | Composer install typo3_console for TYPO3 CMS 6.x and 7.x web roots] ***
failed: [default] => (item={'key': '6.2.cms.local.typo3.org', 'value': 'TYPO3_6-2'}) => {"failed": true, "item": {"key": "6.2.cms.local.typo3.org", "value": "TYPO3_6-2"}}
msg: [UnexpectedValueException] Could not parse version constraint TYPO3_6-2: Invalid version string "TYPO3_6-2" install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
failed: [default] => (item={'key': '7.1.0.cms.local.typo3.org', 'value': 'TYPO3_7-1-0'}) => {"failed": true, "item": {"key": "7.1.0.cms.local.typo3.org", "value": "TYPO3_7-1-0"}}
msg: [UnexpectedValueException] Could not parse version constraint TYPO3_7-1-0: Invalid version string "TYPO3_7-1-0" install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
failed: [default] => (item={'key': '7.2.cms.local.typo3.org', 'value': 'HEAD'}) => {"failed": true, "item": {"key": "7.2.cms.local.typo3.org", "value": "HEAD"}}
msg: [UnexpectedValueException] Could not parse version constraint HEAD: Invalid version string "HEAD" install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
skipping: [default] => (item={'key': '4.5.40.cms.local.typo3.org', 'value': 'TYPO3_4-5-40'})
failed: [default] => (item={'key': '6.2.10.cms.local.typo3.org', 'value': 'TYPO3_6-2-10'}) => {"failed": true, "item": {"key": "6.2.10.cms.local.typo3.org", "value": "TYPO3_6-2-10"}}
msg: [UnexpectedValueException] Could not parse version constraint TYPO3_6-2-10: Invalid version string "TYPO3_6-2-10" install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
skipping: [default] => (item={'key': '4.5.cms.local.typo3.org', 'value': 'TYPO3_4-5'})
failed: [default] => (item={'key': '7.0.cms.local.typo3.org', 'value': 'TYPO3_7-0'}) => {"failed": true, "item": {"key": "7.0.cms.local.typo3.org", "value": "TYPO3_7-0"}}
msg: [UnexpectedValueException] Could not parse version constraint TYPO3_7-0: Invalid version string "TYPO3_7-0" install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
FATAL: all hosts have already failed -- aborting
Ah, that would be because the typo3_console support was merged into master recently. This means that composer notation is now used where possible. The TYPO3 source has been tagged with version tags (6.2.11 etc.) since version 6. typo3_console supports TYPO3 6.2.6 and up.
So your configuration should now use composer versioning:
cms:
sites:
4.5.cms.local.typo3.org: 'TYPO3_4-5'
4.5.40.cms.local.typo3.org: 'TYPO3_4-5-40'
6.2.cms.local.typo3.org: '6.2.*'
6.2.11.cms.local.typo3.org: '6.2.11'
7.1.0.cms.local.typo3.org: '7.1.0'
dev-master.cms.local.typo3.org: '*'
The upside is that you no longer have to go through the install tool.
I copied Defaults/*.yml into Configuration/ - that made a significant difference.
Merged into master.
https://github.com/helhum/typo3_console