Composer version 2.0 errors
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
I opened this PR for this exact reason :) https://github.com/sclorg/s2i-php-container/pull/313
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,
#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.