beluga-php / docker-php

A Docker client in PHP
MIT License
33 stars 17 forks source link

Not sure why I cannot install latest version #84

Closed back-2-95 closed 2 months ago

back-2-95 commented 2 months ago

This is what I get with composer require beluga-php/docker-php -w to existing symfony 7.1 project:

./composer.json has been updated
Running composer update beluga-php/docker-php --with-dependencies
No patches supplied.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - beluga-php/docker-php 1.43.x-dev is an alias of beluga-php/docker-php dev-master and thus requires it to be installed too.
    - beluga-php/docker-php dev-dependabot/composer/beluga-php/docker-php-api-7.1.45.0 requires beluga-php/docker-php-api 7.1.45.0 -> satisfiable by beluga-php/docker-php-api[v7.1.45.0].
    - beluga-php/docker-php[dev-dependabot/github_actions/shivammathur/setup-php-2.31.0, dev-dependabot/github_actions/actions/checkout-4.1.7, dev-dependabot/github_actions/paambaati/codeclimate-action-8.0.0, dev-master, v1.43.1, ..., 1.43.x-dev] require beluga-php/docker-php-api 7.1.43.0 -> satisfiable by beluga-php/docker-php-api[v7.1.43.0].
    - beluga-php/docker-php[dev-dependabot/composer/infection/infection-tw-0.26or-tw-0.27, dev-dependabot/composer/vimeo/psalm-tw-4.3or-tw-5.0, dev-dependabot/composer/phpunit/phpunit-tw-9.5or-tw-10.0, 1.41.x-dev] require symfony/filesystem ^6.1 -> found symfony/filesystem[v6.1.0-BETA1, ..., 6.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php-api[v7.1.43.0, ..., v7.1.45.0] require symfony/serializer ^6.3 -> found symfony/serializer[v6.3.0-BETA1, ..., 6.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php[1.21.1, ..., 1.24.x-dev] require symfony/filesystem ^2.3 || ^3.0 -> found symfony/filesystem[v2.3.0, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php[v0.1.0, ..., v0.5.0] require symfony/filesystem ~2.3 -> found symfony/filesystem[v2.3.0, ..., 2.8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php[v0.2.1, ..., v0.3.0] require symfony/filesystem ~2.5.0 -> found symfony/filesystem[v2.5.0-BETA1, ..., 2.5.x-dev] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php 1.21.0 requires symfony/filesystem ~2.3|3.0 -> found symfony/filesystem[v2.3.0, ..., 2.8.x-dev, v3.0.0] but these were not loaded, likely because it conflicts with another require.
    - beluga-php/docker-php[v1.41.0, ..., v1.43.0] require symfony/filesystem ^6.3 -> found symfony/filesystem[v6.3.0-BETA1, ..., 6.4.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires beluga-php/docker-php * -> satisfiable by beluga-php/docker-php[dev-dependabot/composer/infection/infection-tw-0.26or-tw-0.27, dev-dependabot/composer/vimeo/psalm-tw-4.3or-tw-5.0, dev-dependabot/github_actions/shivammathur/setup-php-2.31.0, dev-dependabot/github_actions/actions/checkout-4.1.7, dev-dependabot/github_actions/paambaati/codeclimate-action-8.0.0, dev-dependabot/composer/beluga-php/docker-php-api-7.1.45.0, dev-dependabot/composer/phpunit/phpunit-tw-9.5or-tw-10.0, dev-master, v0.1.0, ..., v0.5.0, 1.21.0, ..., 1.43.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require beluga-php/docker-php:*" to figure out if any version is installable, or "composer require beluga-php/docker-php:^2.1" if you know which you need.
flavioheleno commented 2 months ago

Can you provide a composer.json with your dependencies constraints? (ie. only the require and require-dev sections of it)

back-2-95 commented 2 months ago
    "require": {
        "php": "^8.3",
        "composer-runtime-api": "^2",
        "composer/installers": "^2.2.0",
        "cweagans/composer-patches": "^1.7.3",
        "drupal/core-composer-scaffold": "^11.0",
        "drupal/core-recommended": "^11.0",
        "drush/drush": "^13.0.1",
        "oomphinc/composer-installers-extender": "^2.0.1"
    },
    "require-dev": {
        "drupal/core-dev-pinned": "^11.0"
    },
flavioheleno commented 2 months ago

The latest release on beluga-php/docker-php is v1.43.1 which requires beluga-php/docker-php-api:7.1.43.0, which in turn supports only symfony/*:^6.3.

I'll tag a release to bump dependencies.

back-2-95 commented 2 months ago

@flavioheleno when do you think you're able to create a new release?

flavioheleno commented 2 months ago

@back-2-95 could you kindly try ~v1.45.1~ v1.45.2 please?

back-2-95 commented 2 months ago

Hi, yes. I was able to install it now:

composer r beluga-php/docker-php:^1.45.2
./composer.json has been updated
Running composer update beluga-php/docker-php
No patches supplied.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 14 installs, 0 updates, 0 removals
  - Locking beluga-php/docker-php (v1.45.2)
  - Locking beluga-php/docker-php-api (v7.1.45.1)
  - Locking clue/stream-filter (v1.7.0)
  - Locking jane-php/json-schema-runtime (v7.8.1)
  - Locking jane-php/open-api-runtime (v7.8.1)
  - Locking league/uri (7.4.1)
  - Locking league/uri-interfaces (7.4.1)
  - Locking nyholm/psr7 (1.8.1)
  - Locking php-http/client-common (2.7.1)
  - Locking php-http/message (1.16.1)
  - Locking php-http/multipart-stream-builder (1.3.1)
  - Locking php-jsonpointer/php-jsonpointer (v4.0.0)
  - Locking plesk/socket-client (2.1.1-patch2)
  - Locking symfony/options-resolver (v6.4.8)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 14 installs, 0 updates, 0 removals
  - Downloading symfony/options-resolver (v6.4.8)
  - Downloading plesk/socket-client (2.1.1-patch2)
  - Downloading beluga-php/docker-php-api (v7.1.45.1)
  - Downloading beluga-php/docker-php (v1.45.2)
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing symfony/options-resolver (v6.4.8): Extracting archive
  - Installing nyholm/psr7 (1.8.1): Extracting archive
  - Installing plesk/socket-client (2.1.1-patch2): Extracting archive
  - Installing clue/stream-filter (v1.7.0): Extracting archive
  - Installing php-http/message (1.16.1): Extracting archive
  - Installing php-http/client-common (2.7.1): Extracting archive
  - Installing php-http/multipart-stream-builder (1.3.1): Extracting archive
  - Installing php-jsonpointer/php-jsonpointer (v4.0.0): Extracting archive
  - Installing league/uri-interfaces (7.4.1): Extracting archive
  - Installing league/uri (7.4.1): Extracting archive
  - Installing jane-php/json-schema-runtime (v7.8.1): Extracting archive
  - Installing jane-php/open-api-runtime (v7.8.1): Extracting archive
  - Installing beluga-php/docker-php-api (v7.1.45.1): Extracting archive
  - Installing beluga-php/docker-php (v1.45.2): Extracting archive
9 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
phpstan/extension-installer: Extensions installed
No security vulnerability advisories found.
flavioheleno commented 2 months ago

Great! I'm gonna close this issue, please feel free to open new issues if you face problems again.