Skip to content

composer-plugin-api[2.2.0] version mismatch #2

Description

@gauravgoyal

We're using this plugin to maintain custom upstream with integrated composer. When we try to create a downstream site, composer install fails for below issue

> WordPressComposerManaged\ComposerScripts::preUpdate
Using version 'dev-main' for path repositories.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
 
  Problem 1
    - pantheon-systems/upstream-management 1.0 requires composer-plugin-api ^2.3 -> found composer-plugin-api[2.2.0] but it does not match the constraint.
    - pantheon-upstreams/upstream-configuration dev-main requires pantheon-systems/upstream-management 1.0 -> satisfiable by pantheon-systems/upstream-management[1.0].
    - Root composer.json requires pantheon-upstreams/upstream-configuration dev-main -> satisfiable by pantheon-upstreams/upstream-configuration[dev-main].

Locally it works fine. There is a difference in composer version available on Pantheon platform vs local.

Composer version on Pantheon - 2.2.12 2022-04-13 16:42:25
Composer version on Local - 2.5.4 2023-02-15 13:10:06

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions