// before
{
"mocks": {
"a_mock.go": {
"checksum": "xxxxxxxxxxx",
"source_checksum": "aaaaaaaaaaaaa",
"mode": "SOURCE_MODE",
"source_mode_runner": {
"source": "a.go",
"destination": "a_mock.go",
"package": "main"
}
},
"b_mock.go": {
"checksum": "yyyyyyyyyyyy",
"source_checksum": "bbbbbbbbbbb",
"mode": "SOURCE_MODE",
"source_mode_runner": {
"source": "b.go",
"destination": "b_mock.go",
"package": "main"
}
}
}
// after
{
"mocks": {
"b_mock.go": {
"checksum": "yyyyyyyyyyyy",
"source_checksum": "bbbbbbbbbbb",
"mode": "SOURCE_MODE",
"source_mode_runner": {
"source": "b.go",
"destination": "b_mock.go",
"package": "main"
}
},
"a_mock.go": {
"checksum": "xxxxxxxxxxx",
"source_checksum": "aaaaaaaaaaaaa",
"mode": "SOURCE_MODE",
"source_mode_runner": {
"source": "a.go",
"destination": "a_mock.go",
"package": "main"
}
}
}
This behavior becomes some noise when we manage config file by git.
I recommend those contents to be dictionary order to avoid this problem.
I think the part below leads this phenomenon.
Thank you.