knock-knock icon indicating copy to clipboard operation
knock-knock copied to clipboard

Craft 5 upgrade issue

Open splendidrob opened this issue 1 year ago • 4 comments

Describe the bug

Running composer update as per the Craft 5 upgrade I'm getting an error for Knock Knock:

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

  Problem 1
    - verbb/knock-knock 3.0.0-beta.1 requires verbb/base ^3.0.0-beta.1 -> found verbb/base[3.0.0-beta.1] but it does not match your minimum-stability.
    - Root composer.json requires verbb/knock-knock 3.0.0-beta.1 -> satisfiable by verbb/knock-knock[3.0.0-beta.1].

Seems slightly odd to me as looks like I do have the minimum required version...

Steps to reproduce

  1. Follow upgrade instructions for Craft 5 and add new versions for all plugins in composer.json
  2. run composer update

Craft CMS version

2.0.48.1

Plugin version

2.0.11

Multi-site?

no

splendidrob avatar Mar 28 '24 09:03 splendidrob

Added "verbb/base": "3.0.0-beta.1", to my composer.json which seems to have sorted this...

splendidrob avatar Mar 28 '24 10:03 splendidrob

Strange, that should be all means work, and you shouldn't need to require verbb/base specifically.

You might like to try: composer require "verbb/knock-knock:^3.0.0-beta.1" -w

engram-design avatar Mar 29 '24 07:03 engram-design

Couldnt quite get that to work - running as part of the Craft 5 upgrade process it wouldn't allow me to install using the above require command due to requiring Craft 5, but I cant install Craft 5 without upgrading knock knock...so I just added the base again...

splendidrob avatar Apr 04 '24 13:04 splendidrob

Thanks for letting me know, I'll continue to look into what's going on here. I've yet to encounter this one in the wild.

One other thing to check was your minimum-stability setting in composer.json if you have that set.

engram-design avatar Apr 04 '24 14:04 engram-design