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:
Home page
Progress indicator page

CommentFileSizeAuthor
Simplytest-2.png524.86 KBakshayadhav
Simplytest-1.png965.8 KBakshayadhav

Issue fork simplytest-3405187

Command icon 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

AkshayAdhav created an issue. See original summary.

mahtab_alam made their first commit to this issue’s fork.

abhisekmazumdar’s picture

Status: Active » Needs review

It appears that this is up for review. I will attempt to test it once I have the necessary access.

igorgoncalves’s picture

Thanks @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.

mglaman’s picture

We should be using --no-install and not --no-update, that's why. We want to delay install until the end.

mglaman’s picture

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Pending merge. Thanks for the find.

mglaman’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.