Closed havvg closed 5 years ago
roave/security-advisories dev-master conflicts with ….
What's ...
?
That's the root project itself, sorry for missing to explain.
Hmm, I'd suggest a separate approach: composer require <package/>
is often buggy due to it trying to restrict updates to just what the newly introduced package requires.
Try instead adding "roave/security-advisories": "dev-master"
in your composer.json
, under "require-dev"
, manually. Then run a `composer update: that should be more useful.
Tried it, same result — as with update --lock
.
Only way I can think of now is to reverse the process with an empty project adding the dependencies step by step.
Hmm, I don't know how to help further with that - would try asking in composer/composer
, or maybe pasting your "require"
and "require-dev"
sections in here.
Do you have a replace
section where you declare to replace some package without a real version constraint (i.e. using *
)?
Yes, I do:
"replace": {
"paragonie/random_compat": "*",
"symfony/polyfill-apcu": "*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-icu": "*",
"symfony/polyfill-mbstring": "*",
"symfony/polyfill-php56": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php71": "*"
}
There have been security fixes for some of these packages. A possible solution is to be more precise and specify a high enough version number like this:
"replace": {
"paragonie/random_compat": "2.99",
"symfony/polyfill-apcu": "1.99",
"symfony/polyfill-ctype": "1.99",
"symfony/polyfill-intl-icu": "1.99",
"symfony/polyfill-mbstring": "1.99",
"symfony/polyfill-php56": "1.99",
"symfony/polyfill-php70": "1.99",
"symfony/polyfill-php71": "1.99"
}
This works, indeed. I changed this one line, and the installation runs just fine. "paragonie/random_compat": "^9.99",
. Thank you for this hint!
I'm on an old project and would like to add this tool. However, I'm getting this result:
The composer
why-not
is not helpful either.Is there any known way to handle this situation? I mean something more useful and precise other than "just update everything".