Skip to content
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

Intergation of new PHP composer v.2.0 #736

Closed
fkaminski opened this issue Oct 27, 2020 · 4 comments
Closed

Intergation of new PHP composer v.2.0 #736

fkaminski opened this issue Oct 27, 2020 · 4 comments
Labels

Comments

@fkaminski
Copy link

ISSUE TYPE

  • Feature request

SUMMARY

Please integrate the new PHP Composer version:
see: https://blog.packagist.com/composer-2-0-is-now-available/

@hielh
Copy link

hielh commented Oct 28, 2020

Hi
By using composer in devilbox i get an error, do you have an idea please or it attached to the version of composer
image

I think that the devilbox couldn't connect to internet

@merlijnvanlent
Copy link
Contributor

@hielh Could you try to ping that address? or any other address for that matter?

And are you using composer v2? if not could you please make a separate issue for this problem?

@uphlewis
Copy link

uphlewis commented Oct 29, 2020

A quick and easy solution for now (until the base devilbox images get updated) is to update to the latest version of composer in an autostart script.

Create the following file in your Devilbox installation dir's autostart directory- /path/to/Devilbox/autostart/update_composer.sh:

#! /bin/bash

/usr/local/bin/composer self-update

After that, do the usual devilbox container rm -f and restart:

$ cd /path/to/Devilbox/
$ docker-compose stop && docker-compose rm -f && docker-compose up -d httpd php mysql && ./shell.sh

Then verify your composer version:

composer --version

image

If it didnt work you may need to edit the composer update command in update_composer.sh to force version 2.x like so: /usr/local/bin/composer self-update --2

@cytopia
Copy link
Owner

cytopia commented Nov 9, 2020

#743

@cytopia cytopia closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants