pwr22 / cloudflare-client

CloudFlare::Client Perl module
https://metacpan.org/pod/CloudFlare::Client
2 stars 0 forks source link

Does not work with current version of Moo (March release) #6

Closed mitchcapper closed 6 years ago

mitchcapper commented 7 years ago
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Use of uninitialized value $name in hash element at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 171.
Can't call method "add_attribute" on an undefined value at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 169.
Compilation failed in require at /usr/local/share/perl/5.22.1/CloudFlare/Client.pm line 15.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.22.1/CloudFlare/Client.pm line 15.

Build tests also fail:

Building and testing CloudFlare-Client-v0.55.4
cp lib/CloudFlare/Client.pm blib/lib/CloudFlare/Client.pm
cp lib/CloudFlare/Client/Exception/Upstream.pm blib/lib/CloudFlare/Client/Exception/Upstream.pm
cp lib/CloudFlare/Client/Types.pm blib/lib/CloudFlare/Client/Types.pm
cp lib/CloudFlare/Client/Exception/Connection.pm blib/lib/CloudFlare/Client/Exception/Connection.pm
Manifying 4 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'CloudFlare/Client.pm loaded ok'
#   at t/00-compile.t line 40.
#          got: '65280'
#     expected: '0'
Can't call method "add_attribute" on an undefined value at /usr/local/share/perl/5.22.1/Moo/HandleMoose.pm line 169.
Compilation failed in require at /root/.cpanm/work/1496245968.10663/CloudFlare-Client-v0.55.4/blib/lib/CloudFlare/Client.pm line 15.
BEGIN failed--compilation aborted at /root/.cpanm/work/1496245968.10663/CloudFlare-Client-v0.55.4/blib/lib/CloudFlare/Client.pm line 15.
pwr22 commented 6 years ago

Everything would appear to be working now (the module doesn't even use Moo atm)