From aa7b37838a62176688137c6b763b14d4703f2d82 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 14 Dec 2021 10:08:30 -0500 Subject: [PATCH] PerlCritic: MoreUtils -> SomeUtils --- flake.nix | 1 + src/lib/Hydra/Base/Controller/NixChannel.pm | 2 +- src/lib/Hydra/Controller/Build.pm | 2 +- src/lib/Hydra/Controller/JobsetEval.pm | 2 +- src/lib/Hydra/Controller/Root.pm | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 3fa02795..43cce4bd 100644 --- a/flake.nix +++ b/flake.nix @@ -477,6 +477,7 @@ JSON JSONMaybeXS JSONXS + ListSomeUtils LWP LWPProtocolHttps ModulePluggable diff --git a/src/lib/Hydra/Base/Controller/NixChannel.pm b/src/lib/Hydra/Base/Controller/NixChannel.pm index a598144f..3f8e9609 100644 --- a/src/lib/Hydra/Base/Controller/NixChannel.pm +++ b/src/lib/Hydra/Base/Controller/NixChannel.pm @@ -3,7 +3,7 @@ package Hydra::Base::Controller::NixChannel; use strict; use warnings; use base 'Hydra::Base::Controller::REST'; -use List::MoreUtils qw(any); +use List::SomeUtils qw(any); use Nix::Store; use Hydra::Helper::Nix; use Hydra::Helper::CatalystUtils; diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 72883579..d05aef51 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -11,7 +11,7 @@ use File::stat; use Data::Dump qw(dump); use Nix::Store; use Nix::Config; -use List::MoreUtils qw(all); +use List::SomeUtils qw(all); use Encode; use MIME::Types; use JSON::PP; diff --git a/src/lib/Hydra/Controller/JobsetEval.pm b/src/lib/Hydra/Controller/JobsetEval.pm index 2635adee..6f6e7eab 100644 --- a/src/lib/Hydra/Controller/JobsetEval.pm +++ b/src/lib/Hydra/Controller/JobsetEval.pm @@ -6,7 +6,7 @@ use warnings; use base 'Hydra::Base::Controller::NixChannel'; use Hydra::Helper::Nix; use Hydra::Helper::CatalystUtils; -use List::MoreUtils qw(uniq); +use List::SomeUtils qw(uniq); sub evalChain : Chained('/') PathPart('eval') CaptureArgs(1) { diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index a223ba62..764ccc33 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -13,7 +13,7 @@ use Encode; use File::Basename; use JSON::MaybeXS; use List::Util qw[min max]; -use List::MoreUtils qw{any}; +use List::SomeUtils qw{any}; use Net::Prometheus; use Types::Standard qw/StrMatch/;