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

Composer version 2.0.2 in phpqa:php7.3-alpine #252

Closed
radist opened this issue Oct 27, 2020 · 5 comments
Closed

Composer version 2.0.2 in phpqa:php7.3-alpine #252

radist opened this issue Oct 27, 2020 · 5 comments

Comments

@radist
Copy link

radist commented Oct 27, 2020

$ docker run jakzal/phpqa:php7.3-alpine composer -V
Composer version 2.0.2 2020-10-25 23:03:59
$ docker run composer:1.9 -V
Composer version 1.9.3 2020-02-04 12:58:49
@jakzal
Copy link
Owner

jakzal commented Oct 28, 2020

composer self-update is run during the build, so looks like it allowed to jump from 1 to 2

@orangevinz
Copy link

Same on the php7.4, breaking my CI/CD
Is there any workaround to force the composer version ?

@jakzal
Copy link
Owner

jakzal commented Oct 28, 2020

@orangevinz how did it break?

If it breaks people's CIs we should find a way to downgrade composer, i.e.: composer self-update --1

@orangevinz
Copy link

orangevinz commented Oct 28, 2020

I've been using it with hirak/prestissimo so I had this error:

[InvalidArgumentException]                                                                                                           
  Package hirak/prestissimo at version  has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version  

It seems this package is no longer usefull with composer 2 as it's mentionned here : hirak/prestissimo#233

Anyway, I'll try to migrate my obsolete packages to supports composer 2.0 and we'll be done I guess ;-)

@jakzal
Copy link
Owner

jakzal commented Oct 28, 2020

Yes, prestissimo is redundant with Composer 2. Just uninstall it ;)

I have downgraded Composer to the latest v1 as the upgrade wasn't expected nor planned.

I suggest you lock yourself to one of 1.41.4 tags (i.e. 1.41.4-php7.3-alpine). Images are currently being built. It might take a few hours...

One of the next minor versions should get Composer 2 again.

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

No branches or pull requests

3 participants