Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Comptoir-srv Comptoir-srv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Comptoir
  • Comptoir-srvComptoir-srv
  • Issues
  • #947
Closed
Open
Created Feb 15, 2021 by Fabrice Gangler@fgangler🎨Maintainer

Vagrant - Install composer 1.x instead off composer 2.x

  • Composer 2.x is not compatible with the dependencies described in the composer.json file.
  • But, the default composer installer installs the latest version 2.x.
  • we need to download Composer 1.x via the following URL: https://getcomposer.org/composer-1.phar
- php -r "readfile('https://getcomposer.org/installer');" | sudo php -- --install-dir=/usr/local/bin --filename=composer
+ cd /usr/local/bin
+ wget --no-verbose  https://getcomposer.org/composer-1.phar
+ mv composer-1.phar composer
+ chmod +x composer

phpro/grumphp 0.15.2

phpro/grumphp is used to check commits. Version grumphp 0.15.2 is the latest version compatible with php 7.0, but is not compatible with composer v2.

see: https://packagist.org/packages/phpro/grumphp#v0.15.2

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires phpro/grumphp ^0.15.2 
      -> satisfiable by phpro/grumphp[v0.15.2].
    - phpro/grumphp v0.15.2 requires composer-plugin-api ~1.0 
      -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. 
Make sure you update your plugins or report a plugin-issue 
to ask them to support Composer 2.
Edited Feb 15, 2021 by Fabrice Gangler
Assignee
Assign to
Time tracking