OblikStudio / kirby-git

Kirby plugin for updating content in the panel via Git
MIT License
84 stars 6 forks source link

Unable to install with Kirby v4 via composer #41

Closed srijan closed 9 months ago

srijan commented 11 months ago

The composer.json in the current release requires "getkirby/cms": "^3.7",, which ^4.0.0 does not satisfy.

Full error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - oblik/kirby-git[1.0.0, ..., 1.1.0] require getkirby/cms ^3.3 -> found getkirby/cms[3.3.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.2.0 requires getkirby/cms ^3.4 -> found getkirby/cms[3.4.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.3.0 requires getkirby/cms ^3.6 -> found getkirby/cms[3.6.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - oblik/kirby-git 1.4.0 requires getkirby/cms ^3.7 -> found getkirby/cms[3.7.0, ..., 3.9.8] but it conflicts with your root composer.json require (^4.0.0).
    - Root composer.json requires oblik/kirby-git * -> satisfiable by oblik/kirby-git[1.0.0, ..., 1.4.0].

(Originally published at: https://srijan.ch/notes/2023-11-28-001)

samyouel commented 11 months ago

so that means I can't use it for Kirby 4 anymore? Awesome. :D Anyone git (lol) an alternative?

hdodov commented 9 months ago

Sorry, I've been busy lately. I'll try to make the plugin compatible with Kirby 4. In the meantime, PRs are welcome!

coheredigital commented 9 months ago

You can work around this by using an alias version in composer when installing Kirby 4.

"getkirby/cms": "4.1.0 as 3.9.8"

This of course means all your packages will now be checking their compatibility against version 3.9.8. Depending on the number of plugins your using this may not be worth the potential issues. Just wanted to share.

hdodov commented 9 months ago

I've published version 2.0.0 with support for Kirby 4. Could you try it out and let me know if it works?

coheredigital commented 9 months ago

Hey @hdodov, update looks to be working well for me. Thanks!