Skip to content

Instantly share code, notes, and snippets.

@bnf
Last active March 8, 2019 20:38
Show Gist options
  • Save bnf/d09b2bc674ae0a5fb3ddd067af60642a to your computer and use it in GitHub Desktop.
Save bnf/d09b2bc674ae0a5fb3ddd067af60642a to your computer and use it in GitHub Desktop.

Demonstration that conflicts don't make composer convenient.

First run:

$ composer install

Then

$ composer require typo3/cms-about

Using version ^9.5 for typo3/cms-about
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - typo3/cms-about v9.5.5 requires typo3/cms-core 9.5.5 -> satisfiable by typo3/cms-core[v9.5.5] but these conflict with your requirements or minimum-stability.
    - typo3/cms-about v9.5.4 requires typo3/cms-core 9.5.4 -> satisfiable by typo3/cms-core[v9.5.4] but these conflict with your requirements or minimum-stability.
    - typo3/cms-about v9.5.3 requires typo3/cms-core 9.5.3 -> satisfiable by typo3/cms-core[v9.5.3] but these conflict with your requirements or minimum-stability.
    - typo3/cms-about v9.5.2 requires typo3/cms-core 9.5.2 -> satisfiable by typo3/cms-core[v9.5.2] but these conflict with your requirements or minimum-stability.
    - typo3/cms-about v9.5.1 requires typo3/cms-core 9.5.1 -> satisfiable by typo3/cms-core[v9.5.1] but these conflict with your requirements or minimum-stability.
    - typo3/cms-about v9.5.0 requires typo3/cms-core 9.5.0 -> satisfiable by typo3/cms-core[v9.5.0] but these conflict with your requirements or minimum-stability.
    - Installation request for typo3/cms-about ^9.5 -> satisfiable by typo3/cms-about[v9.5.0, v9.5.1, v9.5.2, v9.5.3, v9.5.4, v9.5.5].


Installation failed, reverting ./composer.json to its original content.


{
"name": "bnf/typo3-test-with-metapackage",
"type": "project",
"require": {
"typo3/cms-core": "^8.7",
"bnf/idiotic-typo3-lts-meta-package": "^8.7"
},
"extra": {
"typo3/cms": {
"web-dir": "web"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment