Compare commits

...

2 commits

Author SHA1 Message Date
Sertonix
1a70dd05a7 Merge branch 'sertonix-main-patch-40041' into 'main'
Sort keys in collect-sections.py

See merge request jwestman/blueprint-compiler!236
2025-03-22 16:17:08 +00:00
Sertonix
d2ef9341da Sort keys in collect-sections.py
This makes sure that the reference_docs.json file
is build reproducible.

Ref https://reproducible-builds.org/
2025-03-22 17:16:31 +01:00

View file

@ -132,5 +132,8 @@ if __name__ == "__main__":
# print the sections to a json file
with open(outfile, "w") as f:
json.dump(
{name: section.to_json() for name, section in sections.items()}, f, indent=2
{name: section.to_json() for name, section in sections.items()},
f,
indent=2,
sort_keys=True,
)