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

worpdress-core-installer fails to install with Composer 2.0 #1245

Closed
4 tasks done
furins opened this issue Oct 24, 2020 · 9 comments
Closed
4 tasks done

worpdress-core-installer fails to install with Composer 2.0 #1245

furins opened this issue Oct 24, 2020 · 9 comments

Comments

@furins
Copy link

furins commented Oct 24, 2020

Description

worpdress-core-installer 1.1.0 fails to install with Composer 2.0.
The package revision 1.1.0 is the latest one available on packagist.org; a more recent PR has been already merged into main branch of roots/worpdress-core-installer to solve the issue but a new release has not been published yet.
It's a kind of duplicate issue, I know, since the correct solution should take place on the aforementioned package. But this issue is blocking also new provisions of trellis, and can be solved forcing Composer <2.0, in case.

For more details and reproducibility see: roots/wordpress-core-installer#4

@schuhwerk
Copy link
Contributor

schuhwerk commented Oct 25, 2020

Hi! I ran into the same issue today provisioning a new server. One problem occured before:

Package hirak/prestissimo at version @stable has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

The package is added here and requires composer-plugin-api ^1.0.0 (packagist).

Adding a version to the dev.yml/server.yml fixes the issue for me (for now).

   - { role: composer, tags: [composer], composer_version: '1.10.16', composer_keep_updated: false }

@furins
Copy link
Author

furins commented Oct 25, 2020

Hi @schuhwerk, I did exactly the same, it's a safe workaround.
Wordpress-core-installer will be fixed soon, probably tomorrow. This should allow us to install composer 2.0 and entirely remove the prestissimo requirement (according to what I've read composer 2.0 already has parallel downloads).

@swalkinshaw
Copy link
Member

  1. roots/wordpress-core-installer has been updated
  2. Bedrock has been updated to use that latest version
  3. I'm removing prestissimo from Trellis in Remove prestissimo from composer_global_packages #1247

@swalkinshaw
Copy link
Member

swalkinshaw commented Oct 26, 2020

For anyone viewing this issue, you have a two main options:

a. update roots/wordpress-core-installer to 1.100.0
b. pin Composer to 1.x as shown above

And assuming you've updated roots/wordpress-core-installer, you should remove prestissimo as well as in #1247

@dalepgrant
Copy link
Contributor

Hopefully some useful further info for future readers:

I just hit this on a brand new server (Ubuntu 20.10), on the very first deploy. The above step (update roots/wordpress-core-installer to 1.100.0) ultimately solved this issue 👌 but I then got hit by an unusual error which took me a while to resolve:

Git repo git@github.com:SmoofCreative/thecambridgecode.com.git cannot be
accessed. Please verify the repository exists and you have SSH forwarding set
up correctly.

I thought this was odd, given I'd just managed a deploy. Seems unrelated, but the only thing I'd changed was updating roots/wordpress-core-installer.

Long story short, I had to SSH into the server and delete the /shared/source folder to be able to deploy again. I spent a good while checking discourse and confirming SSH forwarding was set up, branch & repo was correct, folder permissions etc. so just leaving this here to save someone else.

@martinknorr-spacepilots

Hey guys I'm feeling super stupid, but how exactly do I update roots/wordpress-core-installer to 1.100.0? @swalkinshaw @dalepgrant

@josialoos
Copy link

josialoos commented Nov 16, 2020

Hey guys I'm feeling super stupid, but how exactly do I update roots/wordpress-core-installer to 1.100.0? @swalkinshaw @dalepgrant

+1

I find this dependency only in site/composer.lock but that shouldn't be changed right?

@martinknorr-spacepilots

Okay, so if I do vagrant ssh and go to cd /srv/www/example.dev/current I can run composer update which did the trick for me

@tangrufus
Copy link
Member

how exactly do I update roots/wordpress-core-installer to 1.100.0?

With composer v2, run $ composer update -W

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

7 participants