The lock file is not up to date with the latest changes in composer.json

Created on 30 November 2023, 7 months ago
Updated 8 January 2024, 6 months ago

Problem/Motivation

Not able to generate an instance with Drupal 8.9.20.

Getting following error message:

This may be the error:

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
- Required package "zaporylie/composer-drupal-optimizations" is not present in the lock file.
This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r

Last few lines from the build process:

65686c680a5d5302cca23a4a# /bin/sh -c echo "SIMPLYEST_STAGE_DOWNLOAD"
SIMPLYEST_STAGE_DOWNLOAD
65686c680a5d5302cca23a4a# /bin/sh -c cd "${DOCROOT}" && composer require zaporylie/composer-drupal-optimizations:^1.0 --no-update
./composer.json has been updated
65686c680a5d5302cca23a4a# /bin/sh -c cd "${DOCROOT}" && composer install --no-ansi
> Drupal\Composer\Composer::ensureComposerVersion
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
- Required package "zaporylie/composer-drupal-optimizations" is not present in the lock file.
This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
Command Failed (Tugboat Error 1064): Exit code: 4; Command: cd "${DOCROOT}" && composer install --no-ansi

Steps to reproduce

  • Select Drupal core in the name of the project field.
  • Select 8.9.20 (8.x) in the version field.
  • Click on the Launch Sandbox button.

Please refer the screenshots:

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇮🇳India AkshayAdhav Pune, India 🇮🇳

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024