GitHubPulls: output sorted json without using jq
[?]
Oct 12, 2021, 6:22 PM
EFKQA2YC6ZI2TTOUY66S7TNYQTQN3R7JS4FXRYM7TONAHSIDQCEACDependencies
- [2]
XMM2AZRA[ Fix #531 ] Trim github pr plugin store paths. - [3]
D5YPJDT6Add GithubPulls input plugin. - [4]
FCNC325ZGithubPulls: Add 'revision' to the input - [5]
CWUG4XMBfix github pulls json to be deterministic - [6]
DTQQ72FUfix a stray newline in a path
Change contents
- edit in src/lib/Hydra/Plugin/GithubPulls.pm at line 56
- replacement in src/lib/Hydra/Plugin/GithubPulls.pm at line 58
print $fh encode_json \%pulls;print $fh JSON->new->utf8->canonical->encode(\%pulls); - replacement in src/lib/Hydra/Plugin/GithubPulls.pm at line 60
system("jq -S . < $filename > $tempdir/github-pulls-sorted.json");my $storePath = trim(`nix-store --add "$tempdir/github-pulls-sorted.json"`my $storePath = trim(`nix-store --add "$filename"`