perlcritic: make all open() calls three-argument
[?]
Oct 20, 2021, 2:37 AM
M4FPGVN4YPWIRHA6CPRT2ZZKIGR6BDQ7LJ4SDSZLZLSLMPJBNGWQCDependencies
- [2]
T3HCJYPLImplement `yath`-test for the new Gitea plugin - [3]
6MNLYIXOperlcritic: explicitly assign the result of readdir/file reads - [4]
L6PVAEWJperlcritic: don't open files as bare words - [5]
2GK5DOU7* Downloading closures. - [6]
7I2VJDS6Use pixz instead of bzip2 for compressing nars - [7]
ZQLF4QLVReplace TestHTTPMockServer with python script - [8]
O3NM62IZSupport multiple machines files - [9]
UCJEI7YZDon't compress already-compressed files. - [10]
EYAA7MJYhydra-server: Support logs in S3 - [11]
NYC3LZKH* Generate NAR archives on the fly. Necessary for producing channels - [12]
IN272KZW* Automatically keep all builds in the latest successful release in - [13]
3PNG7NIBRemove trailing whitespace - [14]
I3S23ZI2Fix registerRoot - [15]
GX2GISE2Revert "Don't compress already-compressed files." - [16]
HTL6HIBMmachine-status: Read /etc/nix.machines instead of using the BuildMachines table - [17]
4LL3WLONWrite Hydra roots as regular files instead of symlinks - [18]
ALIOF64I* Use IO::Handles instead of old school filehandles. This ensures - [19]
KI423DCQStream logs if possible and remove size limit - [20]
A63IHCMX* Register GC roots properly. - [21]
E5NSTNVMfixup perlcritic: indirect new
Change contents
- replacement in src/lib/Hydra/Helper/Nix.pm at line 144
open my $root, ">$link" or die "cannot create GC root `$link' to `$path'";open(my $root, ">", $link) or die "cannot create GC root `$link' to `$path'"; - replacement in src/lib/Hydra/Helper/Nix.pm at line 345
open my $conf, "<$machinesFile" or die;open(my $conf, "<", $machinesFile) or die; - replacement in src/lib/Hydra/View/NixClosure.pm at line 17
open $fh, "nix-store --export `nix-store -qR @storePaths` | gzip |";open($fh, "-|", "nix-store --export `nix-store -qR @storePaths` | gzip"); - replacement in src/lib/Hydra/View/NixLog.pm at line 20
my $doTail = $tail ? " tail -n '$tail' |" : "";open $fh, "bzip2 -dc < '$logPath' | $doTail" or die;my $doTail = $tail ? "| tail -n '$tail'" : "";open($fh, "-|", "bzip2 -dc < '$logPath' $doTail") or die; - replacement in src/lib/Hydra/View/NixLog.pm at line 24
open $fh, "tail -n '$tail' '$logPath' |" or die;open($fh, "-|", "tail -n '$tail' '$logPath'") or die; - replacement in src/lib/Hydra/View/NixLog.pm at line 26
open $fh, "<$logPath" or die;open($fh, "<", $logPath) or die; - replacement in src/lib/Hydra/View/NixNAR.pm at line 19
open $fh, "nix-store --dump '$storePath' | pixz -0 $pParam |";open($fh, "-|", "nix-store --dump '$storePath' | pixz -0 $pParam"); - replacement in t/plugins/gitea.t at line 63
open my $fh, $filename or die ("Can't open(): $!\n");open(my $fh, "<", $filename) or die ("Can't open(): $!\n");