Closed pipermerriam closed 6 years ago
Fixes #77
Two lockfiles with identical content can easily end up hashing to a different value due to differences in whitespace used when serializing the JSON.
Define a strict definition of serialization which is tightly packed with sorted keys and utf8 encoded.
cc @gnidan
Some minor cleanups to he language here.
Fixes #77
What was wrong
Two lockfiles with identical content can easily end up hashing to a different value due to differences in whitespace used when serializing the JSON.
How was it fixed
Define a strict definition of serialization which is tightly packed with sorted keys and utf8 encoded.