shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

sw6.4-production requires composer 2 #101

Closed ROBJkE closed 3 years ago

ROBJkE commented 3 years ago

Describe the bug I installed shopware production template 6.4.1.0. Then enter the shell and want to bin/build.sh An error showed up tells me it requres composer 2. I've checked composer -v and version 1.10.22 is given. How do i update / change to composer version 2?

To Reproduce Steps to reproduce the behavior:

  1. Install Shopware Production 6.4.1.0
  2. Enter the Container Shell swdc shell
  3. Go to my project folder and try to run bin/build.sh
  4. Error shows up (Screenshot)

Screenshots image

Environment:

ROBJkE commented 3 years ago

Found out that composer2 command exists. So i set an alias alias composer="composer2" in the local ~/.bashrc Now i get version 2.1.3 if i run composer in the shell.

But if I run bin/build.sh again the error remains the same. weird.

shyim commented 3 years ago

alias does not help. We will need to built a new fuckup to fix that...

shyim commented 3 years ago

Fixed with https://github.com/shyim/shopware-docker/commit/a869efb543b7a676f7351b772873cb3a464badd5

Update your images with swdc update-images

ScottA38 commented 2 years ago

@shyim I had this issue on b7ca5e29d8037943f564a4e439490e2a365645e0. I tried: swdc update-images Rebooting swdc In the end I did:

swdc shell-root;
cd /var/www/html/[project-name];
composer self-update --2