-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Composer updated to v2? #1924
Comments
It seems this is due to the PHP installer script just downloads the most recent version of composer from its installer URL (as described here: https://getcomposer.org/download/), and the composer people have probably quite recently changed it so you get the v2 when doing that now. Perhaps it could be an idea to just curl/wget the latest v1 and/or v2 instead? I guess it is up to you guys what version comes pre-installed. In my opinion, maybe downloading a more specific version is safer, so you have better control over which versions of software you pre-install on your runners. I'll just work around it for now and overwrite |
Workaround using
Also see https://github.com/marketplace/actions/setup-php-action#wrench-tools-support. |
Hello, @carestad |
Not sure if this is clear or not: Contrary to the checkboxes ticked by @carestad, this issue not only affects Ubuntu 20.04, but also Ubuntu 18.04 (which is |
Aha! Nice to know. Thanks for the info. 👍 |
The documentation files related to Ubuntu were updated in main branch. |
As a temporary workaround it also helps to have a script section with |
This will not work 100% safe, since the default User is "runner" and with
which results in:
|
Am I the only one who finds it problematic that a "low-level API" like Composer has received a major upgrade on an existing operating system? I'm all for doing that on The AWS CLI has not been updated to |
@Chrico Good to know! |
In relation to #1924 (comment) I am doing - name: Make sure we are using composer v1
run: |
sudo composer self-update --1
sudo chown $USER $HOME/.composer Early on |
Description
It seems that the composer version has been updated to v2 for runners now, which is causing a lot of distress since it isn't necessarily a plug-and-play upgrade. The virtual environment documentation has not been updated to reflect this, and it seems to be causing some issues (for us at least).
Is there a composer@v1 version still available or is the global
composer
now replaced with v2 for good?Area for Triage:
PHP
Question, Bug, or Feature?:
Question
Virtual environments affected
Expected behavior
Successful running of
composer install
in our existing Laravel project.Actual behavior
composer install
now fails due to dependencies not being ready for composer@v2.Repro steps
composer install
The text was updated successfully, but these errors were encountered: