simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Jan 21 12:01:47 GMT 2023


TL;DR:
  eac7fc1 kaios/manifest.pl: canonicalise the JSON output.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2023-01-21 12:01:47

commit eac7fc1665ef07c4a8b009521034043ce6b422e7
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=eac7fc1665ef07c4a8b009521034043ce6b422e7;hp=88872fe806bb3700c8dc6372d66e1b6620f78da2
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Jan 21 11:57:13 2023 +0000

    kaios/manifest.pl: canonicalise the JSON output.
    
    The default behaviour of JSON::PP's encode_json output is to write the
    keys of a hash in Perl's natural hash order, which isn't consistent
    between runs of the same script due to hash function randomisation.
    This causes my build system to complain when successive builds from
    the same source revision don't produce the same output.
    
    Easily fixed: JSON::PP already has a switch to ensure consistent
    ordering, it's just a matter of finding it and turning it on.

 kaios/manifest.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list