parallel-functions icon indicating copy to clipboard operation
parallel-functions copied to clipboard

Can't update package, dev-master is not a valid constraint

Open Silent0bserv3r opened this issue 3 years ago • 3 comments

Root composer.json requires amphp/parallel-functions dev-master, found amphp/parallel-functions[v0.1.0, v0.1.1, v0.1.2, v0.1.3, v1.0.0, v1.1.0, 1.x-dev, v2.0.0, 2.x-dev] but these do not match your constraint and are therefore not installable.

PHP version - 8.1.0 composer version - 2.5.4 { "require": { "amphp/parallel-functions": "dev-master" }

Silent0bserv3r avatar Nov 27 '23 05:11 Silent0bserv3r

We switched to versioned branches, you can use ^1-dev or ^2-dev now if you really want to use unreleased versions. I'd strongly recommend to use the released versions instead.

kelunik avatar Nov 27 '23 06:11 kelunik

When was dev-master constraint removed. we had this package for a long time in our composer.json but this is the first time we got this issue. It was added last year I think.

Silent0bserv3r avatar Nov 27 '23 06:11 Silent0bserv3r

Recently, as we merged https://github.com/amphp/parallel-functions/pull/36 and released v2.0.0. You can just update it to ^1 and should be fine.

kelunik avatar Nov 27 '23 09:11 kelunik