Fix: Ensure that components cache keys are ordered before dumping to file.

Reason: The CI/CD automation regenerates the cache file, and commits
the changes if it differs from the previous version.

The only way to ensure semantic equivalence is to sort the keys upon
dump.
This commit is contained in:
Fabio Manganiello 2024-01-06 22:49:16 +01:00
parent 0f130235d3
commit edd92b8467
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -123,6 +123,7 @@ class Cache:
'items': self.to_dict(),
},
cls=Message.Encoder,
sort_keys=True,
).encode()
)