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
Dependency solving incorrect edge case behaviour in hook context #2543
Comments
|
Thanks for clarifying!
Well, by default they are not allowed right? One has to set the minimum-stability flag no? I did not set it.
That was my first thought as well, though if that is indeed the case, I could not find the mistake. This is the error I am getting: This is the link added as "provide": |
|
|
Indeed, but anyway we would need to see the complete composer.json to be able to tell. And given you're hacking things together at a fairly low level unexpected side effects can not be excluded. |
I'm well aware of this. This is definitely not what I am running into.
The composer.json of my root package looks as follows: http://pastebin.com/V4xfDJZ3 That is of course without the actual "provides" link, as this one gets added programatically. The composer.json of the sub-page-list thing is http://pastebin.com/YPZw2Sve
Well yeah. I am only seeing the behaviour in the context of this hook, hence the title of the bug.
Now I understand that correctly, I am observing the following incorrect behaviour as well:
|
|
what is the provide you are adding exactly ? |
See the var_dump output I posted in this comment. |
|
you inverted the prettyString and the normalized version in your constraint. the version is not normalized in your object, which is probably why the version comparison goes weird |
Ugh. Thanks :) Those damned primitives, so easy to mix up! This fixed the behaviour, so this was an issue with my code. https://gerrit.wikimedia.org/r/#/c/105092/7..8/includes/ComposerPackageModifier.php |
|
@JeroenDeDauw eh sorry I know this is hard to dive into :) Glad it's fixed now though. |
I am seeing some odd behaviour in the dependency solving after programatically adding a provides link via the pre-update-cmd hook.
My code can be found at https://gerrit.wikimedia.org/r/#/c/105092/
I am observing that:
The text was updated successfully, but these errors were encountered: