-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add possibility to switch between Composer 1 and Composer 2 #296
Comments
@norgeindian composer1 and compose2 alredy preinstalled. |
@Den4ik , just tried it. Does not work in the warden shell. |
@norgeindian Looks like you have older pulled docker images. Please, try to pull latest Command to help update all pulled images: |
@Den4ik , thanks a lot for the hint. You are right, now it works. |
@norgeindian @Den4ik This is a wonderful idea. Added support for this to the image entrypoint. See #300 for details on it. Next steps is to update all usages of php-fpm based images in docker-composer config to pass the value through, should be relatively simple to do. I grok the awk/xargs usage above to pull all the images. :) Pro-tip: If you only want to pull latest images used by a given environment: |
|
I'm not sure if something is hard-coded here, but when I have |
That variable just swich composer version from 1.x to 2.x There is no
functionality to specify the composer version exactly (like 2.1,2.2, etc)
…On Fri, Aug 12, 2022, 06:16 Brendan Tull ***@***.***> wrote:
I'm not sure if something is hard-coded here, but when I have
COMPOSER_VERSION=2.1 (as required by Magento 2.4.4) in my .env file, the
version is still 1.x in the Warden shell. However, if I revert to exactly
COMPOSER_VERSION=2 in the .env file, then the version is 2.x in the
Warden shell (after running $ warden env up of course).
—
Reply to this email directly, view it on GitHub
<#296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVO7EVWP53UABJZMXPNOYTVYW6X5ANCNFSM4XPGXMJA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
How to make a specific composer version @alinalexandru? Did you manage @Brengineer? |
You can not run a specific version. You can specify to use composer 1.x or 2.x by setting in If you set If you need a specific version, there are 2 options:
|
Thanks @alinalexandru. Our case composer version is 2.3 when we checkout master branch which cause the installation problem for M2.4.4. Not sure which warden version we use for composer 2.2.x. |
Is there a way to specify 2.2.10 when using COMPOSER_VERSION=2 instead of 2.3 ? |
You can specify |
Magento 2.4.1 supports only Composer1 whereas Magento 2.4.2 supports Composer 2 as well.
So it would be great if this could be a setting to switch between the versions
The text was updated successfully, but these errors were encountered: