Page MenuHomePhabricator

Cannot install wikimedia/timestamp 4.2.0 due to conflicting wikimedia/metrics-platform requiring wikimedia/timestamp 4.1.1
Closed, ResolvedPublic

Description

I'm unable to proceed at the parent task due to an unusually strict version requirement in an indirect dependency

  • EventLogging requires exactly and only wikimedia/metrics-platform 4.2.1.
  • wikimedia/metrics-platform requires exactly and only wikimedia/timestamp 4.1.1.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires wikimedia/timestamp 4.2.0 (exact version match: 4.2.0 or 4.2.0.0), found wikimedia/timestamp[v4.2.0] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - wikimedia/metrics-platform is locked to version 4.2.1 and an update of this package was not requested.
    - wikimedia/metrics-platform 4.2.1 requires wikimedia/timestamp 4.1.1 -> found wikimedia/timestamp[v4.1.1] but it conflicts with your root composer.json require (4.2.0).

I suggest loosening up both by using the caret ^1.2.3 syntax instead, which allows MediaWiki core, and other extensions to update, as well as e.g. WMF production or MW stable releases, to backport security patches if needed.

  • Change wikimedia/metrics-platform to require wikimedia/timestamp ^4.1.1.
  • Release and publish a (patch or minor) version tag on the wikimedia/metrics-platform package.
  • Change EventLogging to require wikimedia/metrics-platform ^4.2.1.

Note that neither of these changes will affect which version of Metrics Platform is deployed in production. That's decided via the mediawiki/vendor repository where we pin exact versions and review all updates to direct and indirect dependencies.

Event Timeline

Change #1088768 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/vendor@master] Upgrading wikimedia/timestamp (v4.1.1 => v4.2.0)

https://gerrit.wikimedia.org/r/1088768

Change #1088769 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] Updated wikimedia/timestamp from 4.1.1 to 4.2.0

https://gerrit.wikimedia.org/r/1088769

Change #1088768 merged by jenkins-bot:

[mediawiki/vendor@master] Upgrading wikimedia/timestamp (v4.1.1 => v4.2.0)

https://gerrit.wikimedia.org/r/1088768

Change #1088769 merged by jenkins-bot:

[mediawiki/core@master] Updated wikimedia/timestamp from 4.1.1 to 4.2.0

https://gerrit.wikimedia.org/r/1088769

Change #1096451 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/EventLogging@master] build: Update wikimedia/metrics-platform to 4.2.2 and allow minor updates

https://gerrit.wikimedia.org/r/1096451

Krinkle claimed this task.

Change #1088604 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Upgrade wikimedia/metrics-platform to ^4.2.2

https://gerrit.wikimedia.org/r/1088604

Krinkle updated the task description. (Show Details)