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
[RFC] New command to update minimum version in json to lock values #7273
Comments
I think it might be a good thing to have yes, the main problem I see is finding a good name that is clear enough in what it does ;) |
As we have |
Well, modifying the composer.json file is a totally different work than running |
Maybe |
|
uplift-requirements |
I would like to add that it would be really nice to have to have a flag to the update command. Right now I have to do this:
After the change, it would be:
But it could be reduced to a single command to enhance user experience, perhaps even a setting to always do this, making it a no-brainer to have this behavior:
|
I too think it should be yet another |
composer outdated --update-json
composer outdated --update-json --minor-only |
Disagree, currently it is impossible for
Disagree as well, it's completely different functionality than I think it should just be I wrote some more thoughts on this over at #7780 (comment) |
Would it make sense to add a feature to the sat solving that reserves memory and when it detects an out-of-memory, free that and give the message to try |
During SAT the lock is invalid by definition, so what would we base it on? |
Simply giving a message to the end user that composer ran out of memory and they should try |
Ah yes sorry misread, agreed on that. |
As demonstrated in #7780 (comment) and the comment below smart constraint optimization can not only reduce memory usage considerably, it can also make Composer over 30 times faster in real world cases. Given that specific case - it would be awesome if we could also do some sort of detection of packages for which a ridiculous amount of versions had to be considered in the solver. |
Got an implementation of this ready to try out: |
I guess, no such option was added to I would really love to have this available for each project I am working on. I do not expect that a developer runs This way, every maintainer can choose whether to add it to his library or to his project which consumes libraries. @Seldaek as you've implemented the bumper, do you have an idea how complex that would be to have something like this in the |
Currently I have a bash script (company internal) that syncs the values from the lock to the json. Say I have
^3.0.1
in my json, but I have actually installed3.6.10
, running this script would sync the value from the lock file, into the json, making it^3.6.10
. There's no point in composer having to check compatibility with versions lower than what I have installed whenever I update packages.Would it be an idea to implement such a script to composer? If I'm correct, it should improve performance and memory usage, as the list of possible dependencies is smaller. Currently running an update in my symfony application doesn't even break 600MB usage with ~250 packages installed and all scripts running, where as others are reporting up to 1.5GB on memory usage.
The text was updated successfully, but these errors were encountered: