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

Cannot be installed with wp-cli 2.2.0 out of the box #118

Open
ratzrattillo opened this issue Jul 5, 2019 · 12 comments
Open

Cannot be installed with wp-cli 2.2.0 out of the box #118

ratzrattillo opened this issue Jul 5, 2019 · 12 comments

Comments

@ratzrattillo
Copy link

ratzrattillo commented Jul 5, 2019

Hey there,

i would like to try out your very promising package, as the developers of polylang obviously do not yet have any interest in providing a CLI interface.

However when trying to install the pakcage, i get the following errors:

wp package install [email protected]:diggy/polylang-cli.git

Installing package diggy/polylang-cli (dev-master)
Updating /home/www-data/.wp-cli/packages/composer.json to require the package...
Registering [email protected]:diggy/polylang-cli.git as a VCS repository...
Using Composer to install the package...
 
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT

Dependency resolution completed in 0.016 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
    - Conclusion: remove wp-cli/wp-cli 2.2.0
    - diggy/polylang-cli dev-master requires wp-cli/wp-cli ~1.5.0 -> satisfiable by wp-cli/wp-cli[v1.5.0, v1.5.1].
    - diggy/polylang-cli dev-master requires wp-cli/wp-cli ~1.5.0 -> satisfiable by wp-cli/wp-cli[v1.5.0, v1.5.1].
    - Can only install one of: wp-cli/wp-cli[v2.2.0, v1.5.0].
    - Can only install one of: wp-cli/wp-cli[v2.2.0, v1.5.1].
    - Installation request for wp-cli/wp-cli 2.2.0 -> satisfiable by wp-cli/wp-cli[2.2.0].
    - Installation request for diggy/polylang-cli dev-master -> satisfiable by diggy/polylang-cli[dev-master].
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements ablocking the update you have to resolve those problems.
 
Error: Package installation failed (Composer return code 2).
Reverted composer.json.

Do you know how to fix this, so the future users can enjoy your tool even with the newest version of wp-cli?
Did you ever think about submitting your polylang-cli project to the official polylang project? I think this would be really useful and maybe they would take over the maintenance for you also .:)

Greetings!

@szepeviktor
Copy link
Contributor

Of course, see https://github.com/diggy/polylang-cli/blob/master/composer.json#L21

This project may need to wake up.

@diggy What do you think?

@diggy
Copy link
Owner

diggy commented Jul 5, 2019

@ratzrattillo @szepeviktor I've been out of the WP ecosystem for a while, but it looks like I might be circling back over the course of the next few months. In the meantime, happy to accept pull requests!

@ratzrattillo
Copy link
Author

@szepeviktor @diggy
Thanks for your great help. Its working now perfectly with wp-cli 2.2.0.
I would love to see you return to WP and push your project further, as it is really useful!

@fredleeflang
Copy link

Hmm, I don't really understand @szepeviktor solution. In any case, I'm seeing the same error message when using 2.4.0. How can I fix this?

@fredleeflang
Copy link

@diggy could you perhaps elaborate on @szepeviktor solution?

@szepeviktor
Copy link
Contributor

This project may need to wake up.

I've wrote only this, no solution.

Thanks for your great help. Its working now perfectly with wp-cli 2.2.0.

I totally don't understand it.
AFAIK polylang-cli works only with WP-CLI v1

@fredleeflang
Copy link

gotcha @szepeviktor I guess @ratzrattillo had us both confused :)
Listen, I don't see many commits in this package. As this is one of the first packages for WP CLI that I even look into, maybe I can volunteer to help a bit. I'll clone from git and try to resolve the issue. When I succeed I'll offer a fix.

@szepeviktor
Copy link
Contributor

Just have @diggy merge it!

@szepeviktor
Copy link
Contributor

szepeviktor commented Apr 18, 2020

https://packagist.org/packages/szepeviktor/phpstan-wordpress may help you find and fix hidden bugs

@vicksbr
Copy link

vicksbr commented Jun 23, 2020

Have you guys found a solution/workaround?

@dejwsz
Copy link

dejwsz commented Oct 26, 2021

So is it possible to install it and use with WP CLI in version 2.X.X ? Anyone succeeded with it?

@robertcurcio
Copy link

Ping @diggy

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