Oxid Update 6.0.3 auf 6.1.0 - requirements could not be resolved to an installable set of packages

Hallo,
habe in composer.json das require angepasst
“require”: {
“oxid-esales/oxideshop-metapackage-ce”: “^v6.1.0”
}
und bekommen beim Abhängigkeiten aktualisieren
composer update --no-plugins --no-scripts --no-dev
folgenden Fehler:
Your requirements could not be resolved to an installable set of packages.

Problem 1
- oxid-esales/testing-library v4.0.0 requires oxid-esales/oxideshop-unified-namespace-generator ^1.0.0 -> satisfiable by oxid-esales/oxideshop-unified-namespace-generator[v1.0.0].
- oxid-esales/testing-library v4.0.1 requires oxid-esales/oxideshop-unified-namespace-generator ^1.0.0 -> satisfiable by oxid-esales/oxideshop-unified-namespace-generator[v1.0.0].
- Can only install one of: oxid-esales/oxideshop-unified-namespace-generator[v2.0.0, v1.0.0].
- Can only install one of: oxid-esales/oxideshop-unified-namespace-generator[v2.0.0, v1.0.0].
- oxid-esales/oxideshop-metapackage-ce v6.1.0 requires oxid-esales/oxideshop-unified-namespace-generator v2.0.0 -> satisfiable by oxid-esales/oxideshop-unified-namespace-generator[v2.0.0].
- Installation request for oxid-esales/oxideshop-metapackage-ce ^v6.1.0 -> satisfiable by oxid-esales/oxideshop-metapackage-ce[v6.1.0].
- Installation request for oxid-esales/testing-library ^v4.0.0 -> satisfiable by oxid-esales/testing-library[v4.0.0, v4.0.1].

Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.

Man muss zusätzlich noch den Eintrag für das testing-library in “require-dev” ändern:

"oxid-esales/testing-library": "^v5.0.0",

Dann sollte es funktionieren.

PS: Bei der Metapackage verwendet Oxid kein Caret mehr (damit der Shop nicht aus Versehen updated):

"oxid-esales/oxideshop-metapackage-ce": "v6.1.0"
2 Likes

vielen Dank für die Hinweise, hat super funktioniert.
P.S.
Woher weiß man das mit “require-dev”?
Kann man die compser.json für die einzelnen Versionen irgendwo beziehen?

Das war schon mal Thema hier im Forum: Update mit Composer auf 6.1.x nicht möglich, in der Update-Anleitung wird das leider nicht erwähnt. Die composer jsons sind hier: https://github.com/OXID-eSales/oxideshop_project/blob/b-6.1-ce/composer.json, mit dem Dropdown für Branches kann man die einzelnen Versionen sehen.

1 Like

vielen Dank für den Tipp

Genau das ist vergessen worden. Ich hab dazu grad einen Pull Request reingereicht: add missing information by kermie · Pull Request #21 · OXID-eSales/developer_documentation · GitHub