On Thu, 08 Jun 2017 16:33:33 -0700, ju...@tnx.nl wrote:
> It'd be nice if I didn't have to stringify this myself:
> 
>     use lib $*PROGRAM.resolve.sibling('lib');
> 
> Currently, this results in the following failure:
> 
>     Type check failed in binding to parameter '$spec'; expected Str but
>     got IO::Path

Thank you for the report. This is now fixed.

Fix:  https://github.com/rakudo/rakudo/commit/3ff29d42f026fde
Test: https://github.com/perl6/roast/commit/0bed3721473fc472e


> A simple workaround for now is:
> 
>     use lib ~$*PROGRAM.resolve.sibling('lib');
> 

That's actually not a correct way to stringify paths if you wish the string
to refer to the same filesystem object: 
https://docs.perl6.org/language/traps#IO::Path_Stringification

Reply via email to