GitHubPulls: output sorted json without using jq

[?]
Oct 12, 2021, 6:22 PM
EFKQA2YC6ZI2TTOUY66S7TNYQTQN3R7JS4FXRYM7TONAHSIDQCEAC

Dependencies

  • [2] XMM2AZRA [ Fix #531 ] Trim github pr plugin store paths.
  • [3] CWUG4XMB fix github pulls json to be deterministic
  • [4] DTQQ72FU fix a stray newline in a path
  • [5] D5YPJDT6 Add GithubPulls input plugin.
  • [6] FCNC325Z GithubPulls: Add 'revision' to the input

Change contents

  • edit in src/lib/Hydra/Plugin/GithubPulls.pm at line 56
    [3.1810]
    [3.1810]
  • replacement in src/lib/Hydra/Plugin/GithubPulls.pm at line 58
    [3.1891][3.1891:1926]()
    print $fh encode_json \%pulls;
    [3.1891]
    [3.1926]
    print $fh JSON->new->utf8->canonical->encode(\%pulls);
  • replacement in src/lib/Hydra/Plugin/GithubPulls.pm at line 60
    [3.1941][3.56:127](),[3.127][2.0:79]()
    system("jq -S . < $filename > $tempdir/github-pulls-sorted.json");
    my $storePath = trim(`nix-store --add "$tempdir/github-pulls-sorted.json"`
    [3.1941]
    [2.79]
    my $storePath = trim(`nix-store --add "$filename"`