Build Prod Site NG fails - error: No such remote 'composer'
We have this problem often, when Build Prod Site NG
task fails.
...
- Installing henrywhitaker3/healthchecks-io (v1.0.2): Extracting archive
- Installing lakedrops/docker4drupal (v3.8.12): Cloning bdd1b6658d from cache
- Upgrading lakedrops/drupal-environment (v3.1.19 => v3.1.20): Checking out b64dada206 from cache
Update of lakedrops/drupal-environment failed
In Git.php line 471:
Failed to execute (git rev-parse --quiet --verify 'b64dada206180ac3bf50fa45
76985d1602c84729^{commit}' || (git remote set-url composer -- '/root/.compo
ser/cache/vcs/https---gitlab.lakedrops.com-composer-plugin-drupal-environme
nt/' && git fetch composer && git fetch --tags composer)) && git remote set
-url composer -- 'https://gitlab.lakedrops.com/composer/plugin/drupal-envir
onment'
error: No such remote 'composer'
...
and it happens when the new version of lakedrops/drupal-environment is released (ie 3.1.20) but in our composer.lock we have an older version (ie 3.1.19). The only 'fix' I know is to upgrade lakedrops/drupal-environment locally to the newest version and then do deployment again.
Is there maybe any workaround/fix for this, or have I misconfigured something maybe?