This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Incorporate SolveMeta into LockDiff #623
Closed
Description
Currently LockDiff only compares the memo. but now that #584 has added new metadata fields, the LockDiff should be updated to include them as well. Also we should print "Inputs Digest" instead of "Memo" now that the field has been renamed.
For example:
Old Gopkg.lock
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "abc123"
solver-name = "gps-cdcl"
solver-version = 1
New Gopkg.lock
[solve-meta]
analyzer-name = "dep+imports"
analyzer-version = 4
inputs-digest = "def456"
solver-name = "gps-cdcl"
solver-version = 2
Running dep ensure -n
would print:
Would have written the following changes to Gopkg.lock:
Analyzer Name: dep -> dep imports
Analyzer Version: 1 -> 4
Solver Version: 1 -> 2
Inputs Digest: abc123 -> def456