Repository navigation
deploy:check_composer_install fails #10
Copy link
Copy link
Closed
Description
Complete deployer-extended-typo3 setup works nicely, but only if we remove deploy:check_composer_install.
# Working run without deploy:check_composer_install
➜ git:(master) ddev exec dep deploy staging
✈︎ Deploying master on staging
✔ Executing task deploy:check_lock
✔ Executing task deploy:check_branch_local
✔ Executing task deploy:check_branch
✔ Executing task deploy:prepare
✔ Executing task deploy:lock
✔ Executing task deploy:release
✔ Executing task deploy:update_code
✔ Executing task deploy:shared
✔ Executing task deploy:writable
✔ Executing task deploy:vendors
✔ Executing task deploy:clear_paths
✔ Executing task db:backup
✔ Executing task buffer:start
✔ Executing task db:truncate
✔ Executing task typo3cms:database:updateschema
✔ Executing task deploy:symlink
✔ Executing task cache:clear_php_cli
✔ Executing task cache:clear_php_http
✔ Executing task buffer:stop
✔ Executing task deploy:unlock
✔ Executing task cleanup
✔ Executing task deploy:extend_log
Successfully deployed!
# Breaking run with deploy:check_composer_install
➜ git:(master) ✗ ddev exec dep deploy staging
✈︎ Deploying master on staging
✔ Executing task deploy:check_lock
➤ Executing task deploy:check_composer_install
✔ Executing task deploy:failed
✔ Executing task deploy:unlock
✔ Executing task deploy:unlock
✔ Executing task deploy:unlock
In deploy_check_composer_install.php line 10:
A composer.lock changes has been detected but you did not run "composer install". Please run composer install, then check if everything is working on your instance and do deploy after.
deploy [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] [<stage>]
Failed to execute command dep deploy staging: exit status 1
Local composer --dry-run output:
# ddev
➜ git:(master) ddev composer install --dry-run
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
49 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
# local without ddev (not really preferred way to work)
➜ git:(master) composer install --dry-run
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
49 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
We are using composer 2.0.7.
Any idea?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
kszymukowicz commentedon Dec 4, 2020
Yes. This is because the info about "no need to install anything" has changed a bit in composer2.
I am working on composer2 issues. This will be fixed soon.
kszymukowicz commentedon Dec 30, 2020
@surphil
Plz try
deployer-extended-typo316.0.0. The check fordeploy:check_composer_installis fixed and additionally you can set composer version withset('composer_channel', 2)