Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer version 2.0 errors #312

Open
meanderix opened this issue Oct 30, 2020 · 3 comments
Open

Composer version 2.0 errors #312

meanderix opened this issue Oct 30, 2020 · 3 comments

Comments

@meanderix
Copy link

meanderix commented Oct 30, 2020

I'm seeing the following error when building this image in my current Openshift-project:
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.

It looks like this image does not have an option to install a specific composer version?

It should be possible to specify a version when running the setup-script, like this:
php composer-setup.php --version=1.10.16

@andreasottosson
Copy link

I opened this PR for this exact reason :) #313

@jangel97
Copy link

Hello,

I did try the s2i builder from master branch with this php project https://github.com/tobru/drupal-openshift.git#openshift, my aim is to build drupal application and deploy it to OpenShift.

I don't know if the master branch was updated, but I am still facing this issue:

---> Installing application source...
Found 'composer.json', installing dependencies using composer.phar... 
Downloading https://getcomposer.org/installer, attempt 1/6
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  269k  100  269k    0     0   441k      0 --:--:-- --:--:-- --:--:--  441k
All settings correct for using Composer
Downloading...
Composer (version 2.0.6) successfully installed to: /opt/app-root/src/composer.phar
Use it: php composer.phar
The "wikimedia/composer-merge-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
  Problem 1
    - wikimedia/composer-merge-plugin is locked to version v1.3.0 and an update of this package was not requested.
    - wikimedia/composer-merge-plugin v1.3.0 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.
subprocess exited with status 2
subprocess exited with status 2
error: build error: error building at STEP "RUN /usr/libexec/s2i/assemble": exit status 2

In my local I commented the following line of the assemble script:
./composer.phar install --no-interaction --no-ansi --optimize-autoloader $COMPOSER_ARGS

What implications has commenting this line?

It's normal that this error happens to me too right?

Kind regards,

@andreasottosson
Copy link

#313 has not been merged into master yet. That repo https://github.com/tobru/drupal-openshift#openshift is really old, I would find a newer guide on how to run Drupal on OpenShift / Kubernetes If I were you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants