Pull requests

#1 Merged
Repository
mateu mateu
Branch
default
Repository
tobyink tobyink
Branch
default

Keep cache_dir as an InstanceOf['Path::Class::Dir']

Author
  1. Mateu Hunter
Reviewers
Description

When trying out p5u I was getting the following:

$ p5u testers MooX::Types::MooseLike isa check for "cache_dir" failed: /home/hunter/perl5/utils/data/testers/cache is not an instance of Path::Class::Dir! at (eval 50) line 47.

The cache_dir was being stringified (thus losing its instanceness). By just dropping the ->stringify I was able to get p5u functioning. Nice tool ;)

Comments (1)

  1. Toby Inkster repo owner

    Thanks. The switch from Any::Moose to Moo was recent and there's probably still some bugs lurking. (I'm no good at writing test suites for command-line apps.)