Skip to content

shopping-merchant-products can not be installed via composer due to dependencies conflict #9373

Description

@Whip

Package google/shopping-merchant-products hasn't been bumped to allow google/protobuf ^5.0, even though sibling packages (google/common-protos, google/gax, google/grpc-gcp) already support v5. I have it already installed at 5.35 version so when I try to install this package

 composer require google/shopping-merchant-products

I get this error:

  Problem 1
    - Root composer.json requires google/shopping-merchant-products * -> satisfiable by google/shopping-merchant-products[v0.1.0, ..., v0.7.0, v1.0.0, ..., v1.7.0].
    - google/shopping-common-protos v0.4.0 requires google/protobuf ^v3.25.3||^4.26.1 -> found google/protobuf[v3.25.3, ..., v3.25.9, v4.26.1, ..., v4.33.6] but the package is fixed to v5.35.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - google/shopping-common-protos v0.4.2 requires google/protobuf ^4.26.1 -> found google/protobuf[v4.26.1, ..., v4.33.6] but the package is fixed to v5.35.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - google/shopping-common-protos[v0.4.3, ..., v0.4.4] require google/protobuf ^4.31 -> found google/protobuf[v4.31.0, ..., v4.33.6] but the package is fixed to v5.35.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - google/shopping-merchant-products[v0.1.0, ..., v0.7.0, v1.0.0] require google/shopping-common-protos ^0.4.0 -> satisfiable by google/shopping-common-protos[v0.4.0, v0.4.2, v0.4.3, v0.4.4].
    - google/shopping-merchant-products[v1.1.0, ..., v1.7.0] require google/shopping-common-protos ~0.4.0 -> satisfiable by google/shopping-common-protos[v0.4.0, v0.4.2, v0.4.3, v0.4.4].

Environment details

  • OS: Ubuntu 24.04
  • PHP version: 8.2
  • Package name and version: google/shopping-merchant-products

Steps to reproduce

  1. Install something like "google/apiclient"
  2. Install the package

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