Skip Menu |

This queue is for tickets about the Type-Tiny CPAN distribution.

Report information
The Basics
Id: 131401
Status: resolved
Priority: 0/
Queue: Type-Tiny

People
Owner: Nobody in particular
Requestors: WATERKIP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.007_000
Fixed in: (no value)



Subject: Bareword errors in Type::Tiny::Class
I'm having issues with Type::Tiny::Class starting with version 1.008000 (1.007_000 and up actually): $ cpanm Type::Tiny::Class@1.00600 && perl -e 'use Type::Tiny::Class; print "hello world\n"' Type::Tiny::Class is up to date. (1.006000) hello world 12:30 pts/11 0 wesleys@neptune:/home/wesleys $ cpanm Type::Tiny::Class@1.00800 && perl -e 'use Type::Tiny::Class; print "hello world\n"' --> Working on Type::Tiny::Class Fetching http://backpan.perl.org/authors/id/T/TO/TOBYINK/Type-Tiny-1.008000.tar.gz ... OK Configuring Type-Tiny-1.008000 ... OK Building and testing Type-Tiny-1.008000 ... OK Successfully installed Type-Tiny-1.008000 (upgraded from 1.006000) 1 distribution installed Bareword "Type::Tiny::_USE_MOUSE" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 45. Bareword "Type::Tiny::_USE_XS" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 45. Bareword "Type::Tiny::_USE_XS" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 73. BEGIN not safe after errors--compilation aborted at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 81. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. It seems to be broken in 1.007_000: $ cpanm Type::Tiny::Class@1.007_000 && perl -e 'use Type::Tiny::Class; print "hello world\n"' ! Finding Type::Tiny::Class (== 1.007_000) on cpanmetadb failed. --> Working on Type::Tiny::Class Fetching http://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-1.007_000.tar.gz ... OK Configuring Type-Tiny-1.007_000 ... OK Building and testing Type-Tiny-1.007_000 ... OK Successfully installed Type-Tiny-1.007_000 (downgraded from 1.008000) 1 distribution installed Bareword "Type::Tiny::_USE_MOUSE" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 45. Bareword "Type::Tiny::_USE_XS" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 45. Bareword "Type::Tiny::_USE_XS" not allowed while "strict subs" in use at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 73. BEGIN not safe after errors--compilation aborted at /home/wesleys/.local/lib/perl5/Type/Tiny/Class.pm line 81. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
Hmm, I know how to fix, but as a workaround, load Type::Tiny first, like: use Type::Tiny; use Type::Tiny::Class;
Fixed in repo.
Fixed in 1.008002.