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
Integer based deterministic lockfile ids #6139
Integer based deterministic lockfile ids #6139
Conversation
I've checked out this PR and installed locally. I certainly won't claim to have done any exhaustive regression tests, but it does seem to work as I was originally hoping when I first heard about lockfiles and it does solve the problem from #6119. |
@@ -13,7 +14,7 @@ | |||
|
|||
|
|||
LOCKFILE = "conan.lock" | |||
LOCKFILE_VERSION = "0.1" | |||
LOCKFILE_VERSION = "0.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I just noticed an unfortunate aspect of this change: though it is sorted and it is consistent, it's not sorted "correctly." It's using alphabetical sorting instead of numerical and therefore nodes are printed in order 1 -> 10 -> 2 -> 3 ... Doesn't really matter, but it does look a little funny and was not expected. |
I'll try to change that in the next breaking change (version bump) of lockfiles. |
Changelog: Fix: Make lockfiles invariant when the graph doesn't change. Now 2 different lockfiles captured with the same resulting graph in 2 different instants will be identical.
Docs: Omit
Close #6119