-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update composer to 2.0 #2760
Comments
There doesn't seem to be any version setting for composer, meaning that the latest one will be used at build time. Just try to rebuilt your workspace container running Another way would be to update the composer version within a container by running The version will switch automatically next time you rebuild a container, though it will still be at 1.x if you keep using the same one that you've built some time ago. |
@pjotrsavitski Thank you very much bro. |
after I rebuild the workspace with --no-cache still have version 1 installed: |
@glorand It is strange that rebuilding a container did not work for you. Not sure how to help with that as it worked just fine for me. Maybe someone with better understanding and deeper knowledge of the inner workings will be able to help. As for the error you have mentioned, it might depend on the user that you ssh into the container with. You might either be a root or run the command with sudo (the second possibility does not seem to be there, at least not for me). Example: This line will ssh into that container with shell set to bash and user laradock. That user is not the root, so the possibilities might be somewhat limited. If you try it without specifying a user |
@pjotrsavitski thanks for your detailed answer. Was my bad, before a no cache rebuild need to stop all running containers. I can confirm that |
for those who still don't get |
Changed current directory to /home/laradock/.composer
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
The text was updated successfully, but these errors were encountered: