-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Simplified Update Multiple Crate Output Formats #9884
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Thanks for the PR! I'm not sure if this is the best fix though since this is just sort of blindly assuming that each pariwise mapping of these lists are the crate verisons that follow the updates. For example it could show 1->2.1 and 2.2->3.2 when in fact the update could be 1->3.2 and 2.1->2.2. I don't know of the best way to solve this, though. One possible solution is to bucket everything based on Cargo's idea of semver compatibility, and then for everything in its own bucket we could basically pair them either arbitrarily or in a sorted fashion. |
I'm very sorry, but the reply was too late for some reasons. I am thinking whether it is complicated to think about the problem? The current for example:
then:
When we execute update, we will only update to the latest version of the current major version, that is, 0.1.1 to 0.1.4 instead of 0.8.4.
Therefore, after I modified it, it does not seem to affect the final result. The result is what I want.
|
Yes I understand the purpose of this change, but I believe my comment still applies where the logic of matching what-updated-to-what is not super principled and I think it could be better. |
☔ The latest upstream changes (presumably #9945) made this pull request unmergeable. Please resolve the merge conflicts. |
Sorry, the reply was late because of a long vacation.
I must be frank, I don't quite understand your explanation. What you mean by this sentence is that if ex_1 is 1.1->3.2 and ex_2 is 2.1->2.2, the result will not be what we want? I conducted a supplementary test.
then, i run I modify the content that needs to be updated:
The following is the comparison result.
After modification:
Hope my understanding is correct. I also want to hear your opinion. |
Yes to reiterate I understand what this change is doing, and I understand why it's being done. My point is that this is a very simple heuristic being applied that I don't think is solving the underlying issue. I think that a better solution here would be to determine a pairwise "upgrade" for each version of the same crate that changed, and then these pairwise upgrades can be printed as additions if they came from nothing, deletions if they went to nothing, and upgrades if it came from something and went to something. |
Thanks for the PR, but I'm going to be stepping down from the Cargo team so I'm going to un-assign myself from this. The Cargo team will help review this when they get a chance. |
Closing as this has become a bit stale, and it looks like there are some design considerations here. Unfortunately the Cargo team does not have the capacity to accept changes of this kind at this time. |
close #9408