Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Fix version constraint #364

Open
daviddavo opened this issue Apr 5, 2020 · 0 comments
Open

Fix version constraint #364

daviddavo opened this issue Apr 5, 2020 · 0 comments

Comments

@daviddavo
Copy link

Environment

php 7.3 and Symfony 5

Symfony packages

$ composer show --latest 'symfony/*'
Restricting packages listed in "symfony/symfony" to "5.0.*"
symfony/apache-pack                v1.0.1  v1.0.1  A pack for Apache support in Symfony
symfony/asset                      v5.0.7  v5.0.7  Symfony Asset Component
symfony/browser-kit                v5.0.7  v5.0.7  Symfony BrowserKit Component
symfony/cache                      v5.0.7  v5.0.7  Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts            v2.0.1  v2.0.1  Generic abstractions related to caching
symfony/config                     v5.0.7  v5.0.7  Symfony Config Component
symfony/console                    v5.0.7  v5.0.7  Symfony Console Component
symfony/css-selector               v5.0.7  v5.0.7  Symfony CssSelector Component
symfony/debug-bundle               v5.0.7  v5.0.7  Symfony DebugBundle
symfony/debug-pack                 v1.0.7  v1.0.7  A debug pack for Symfony projects
symfony/dependency-injection       v5.0.7  v5.0.7  Symfony DependencyInjection Component
symfony/doctrine-bridge            v5.0.7  v5.0.7  Symfony Doctrine Bridge
symfony/dom-crawler                v5.0.7  v5.0.7  Symfony DomCrawler Component
symfony/dotenv                     v5.0.7  v5.0.7  Registers environment variables from a .env file
symfony/error-handler              v5.0.7  v5.0.7  Symfony ErrorHandler Component
symfony/event-dispatcher           v5.0.7  v5.0.7  Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v2.0.1  v2.0.1  Generic abstractions related to dispatching event
symfony/expression-language        v5.0.7  v5.0.7  Symfony ExpressionLanguage Component
symfony/filesystem                 v5.0.7  v5.0.7  Symfony Filesystem Component
symfony/finder                     v5.0.7  v5.0.7  Symfony Finder Component
symfony/flex                       v1.6.2  v1.6.2  Composer plugin for Symfony
symfony/form                       v5.0.7  v5.0.7  Symfony Form Component
symfony/framework-bundle           v5.0.7  v5.0.7  Symfony FrameworkBundle
symfony/http-client                v5.0.7  v5.0.7  Symfony HttpClient component
symfony/http-client-contracts      v2.0.1  v2.0.1  Generic abstractions related to HTTP clients
symfony/http-foundation            v5.0.7  v5.0.7  Symfony HttpFoundation Component
symfony/http-kernel                v5.0.7  v5.0.7  Symfony HttpKernel Component
symfony/inflector                  v5.0.7  v5.0.7  Symfony Inflector Component
symfony/intl                       v5.0.7  v5.0.7  A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer                     v5.0.7  v5.0.7  Symfony Mailer Component
symfony/maker-bundle               v1.15.0 v1.15.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime                       v5.0.7  v5.0.7  A library to manipulate MIME messages
symfony/monolog-bridge             v5.0.7  v5.0.7  Symfony Monolog Bridge
symfony/monolog-bundle             v3.5.0  v3.5.0  Symfony MonologBundle
symfony/notifier                   v5.0.7  v5.0.7  A library to notify messages
symfony/options-resolver           v5.0.7  v5.0.7  Symfony OptionsResolver Component
symfony/orm-pack                   v1.0.8  v1.0.8  A pack for the Doctrine ORM
symfony/phpunit-bridge             v5.0.7  v5.0.7  Symfony PHPUnit Bridge
symfony/polyfill-intl-grapheme     v1.15.0 v1.15.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu          v1.15.0 v1.15.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn          v1.15.0 v1.15.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.15.0 v1.15.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.15.0 v1.15.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php73             v1.15.0 v1.15.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/process                    v5.0.7  v5.0.7  Symfony Process Component
symfony/profiler-pack              v1.0.4  v1.0.4  A pack for the Symfony web profiler
symfony/property-access            v5.0.7  v5.0.7  Symfony PropertyAccess Component
symfony/property-info              v5.0.7  v5.0.7  Symfony Property Info Component
symfony/routing                    v5.0.7  v5.0.7  Symfony Routing Component
symfony/security-bundle            v5.0.7  v5.0.7  Symfony SecurityBundle
symfony/security-core              v5.0.7  v5.0.7  Symfony Security Component - Core Library
symfony/security-csrf              v5.0.7  v5.0.7  Symfony Security Component - CSRF Library
symfony/security-guard             v5.0.7  v5.0.7  Symfony Security Component - Guard
symfony/security-http              v5.0.7  v5.0.7  Symfony Security Component - HTTP Integration
symfony/serializer                 v5.0.7  v5.0.7  Symfony Serializer Component
symfony/serializer-pack            v1.0.3  v1.0.3  A pack for the Symfony serializer
symfony/service-contracts          v2.0.1  v2.0.1  Generic abstractions related to writing services
symfony/stopwatch                  v5.0.7  v5.0.7  Symfony Stopwatch Component
symfony/string                     v5.0.7  v5.0.7  Symfony String component
symfony/test-pack                  v1.0.6  v1.0.6  A pack for functional and end-to-end testing within a Symfony app
symfony/translation                v5.0.7  v5.0.7  Symfony Translation Component
symfony/translation-contracts      v2.0.1  v2.0.1  Generic abstractions related to translation
symfony/twig-bridge                v5.0.7  v5.0.7  Symfony Twig Bridge
symfony/twig-bundle                v5.0.7  v5.0.7  Symfony TwigBundle
symfony/twig-pack                  v1.0.0  v1.0.0  A Twig pack for Symfony projects
symfony/validator                  v5.0.7  v5.0.7  Symfony Validator Component
symfony/var-dumper                 v5.0.7  v5.0.7  Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter               v5.0.7  v5.0.7  A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/web-link                   v5.0.7  v5.0.7  Symfony WebLink Component
symfony/web-profiler-bundle        v5.0.7  v5.0.7  Symfony WebProfilerBundle
symfony/webpack-encore-bundle      v1.7.3  v1.7.3  Integration with your Symfony app & Webpack Encore!
symfony/yaml                       v5.0.7  v5.0.7  Symfony Yaml Component

Symfony CMF packages

$ composer show --latest 'symfony-cmf/*'

Subject

Composer won't install the package because it needs a lower version

Steps to reproduce

Trying to require and install the package while using Symfony 5

Expected results

The package is installed and tested

Actual results

$ composer require symfony-cmf/seo-bundle
Using version ^2.1 for symfony-cmf/seo-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for symfony-cmf/seo-bundle ^2.1 -> satisfiable by symfony-cmf/seo-bundle[2.1.0].
    - symfony-cmf/seo-bundle 2.1.0 requires symfony/framework-bundle ^2.8 || ^3.3 || ^4.0 -> no matching package found.
Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant