magento / magento/data-migration-tool

Dependency conflict with Magento 2.4.4

Open
#891 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
339
Forks
195
PR merge metrics
No merged PRs in 30d

Description

Unable to install the prerelease of Magento 2.4.4 while the Data Migration Tool is installed due to conflicting Monolog packages.

A similar issue has been raised in the magento/magento2 repository, though I believe this will have to be fixed here.

Preconditions (*)
  1. Magento 2.4.3 installed
  2. magento/data-migration-tool (latest, 2.4.3) installed
  3. composer access to prerelease of 2.4.4
Steps to reproduce (*)
  1. composer require-commerce magento/product-community-edition 2.4.4 --no-update --interactive-root-conflicts
  2. composer update
Expected result (*)
  1. Dependencies should resolve and Magento 2.4.4 and its dependencies should be installed.
Actual result (*)
  Problem 1
    - Root composer.json requires magento/data-migration-tool ^2.4 -> satisfiable by magento/data-migration-tool[2.4.0, 2.4.1, 2.4.2, 2.4.3].
    - magento/product-community-edition 2.4.4 requires monolog/monolog ^2.3 -> satisfiable by monolog/monolog[2.3.0, ..., 2.4.0].
    - You can only install one version of a package, so only one of these can be installed: monolog/monolog[1.0.0, ..., 1.27.0, 2.0.0, ..., 2.4.0].
    - magento/product-enterprise-edition 2.4.4 requires magento/product-community-edition 2.4.4 -> satisfiable by magento/product-community-edition[2.4.4].
    - magento/data-migration-tool[2.4.0, ..., 2.4.3] require monolog/monolog ^1.17 -> satisfiable by monolog/monolog[1.17.0, ..., 1.27.0].
    - Root composer.json requires magento/product-enterprise-edition 2.4.4 -> satisfiable by magento/product-enterprise-edition[2.4.4].
References
  1. First, upgrade process for above was obtained from the Adobe doc here.
  2. This was caused in this Pull Request, while this Issue was being addressed.
  3. To resolve, data-migration-tool will need to update to Monolog ^2. A Monolog-written guide on that can be found here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the root composer.json and the reported composer require and update commands, then read the linked Monolog UPGRADE guide to understand the required dependency change. Reproduce the conflict with Magento 2.4.4 and confirm the data-migration-tool dependencies resolve with Monolog 2 without breaking the migration tool.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.