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:


| Comment | File | Size | Author |
|---|---|---|---|
| Simplytest-2.png | 524.86 KB | akshayadhav | |
| Simplytest-1.png | 965.8 KB | akshayadhav |
Issue fork simplytest-3405187
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
abhisekmazumdarIt appears that this is up for review. I will attempt to test it once I have the necessary access.
Comment #5
igorgoncalves commentedThanks @mahtab_alam
I checked the code at the last MR and looks ok, but i will ask for guidance on how the proper way to test the change. I will also ask on our slack #channel.
Comment #6
mglamanWe should be using
--no-installand not--no-update, that's why. We want to delay install until the end.Comment #7
mglamanPR for fix: https://github.com/simplytestme/website/pull/419
Comment #8
mglamanPending merge. Thanks for the find.
Comment #9
mglaman