Skip to content

Commit

Permalink
Pass an absolutified path to CWD
Browse files Browse the repository at this point in the history
Fixes a weird spectest failure in t/spec/S12-meta/exporthow.t
===SORRY!===
Type check failed in binding to parameter '$CWD'; expected Str but got IO::Path (IO::Path.new("/Users/ugexe/re...)
  • Loading branch information
ugexe committed Sep 28, 2018
1 parent 3a68cc9 commit 339ea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Distribution.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ role Distribution {
role Distribution::Locally does Distribution {
has IO::Path $.prefix;
method content($address) {
my $handle = IO::Handle.new: path => IO::Path.new($address, :CWD($!prefix // $*CWD));
my $handle = IO::Handle.new: path => IO::Path.new($address, :CWD($!prefix.absolute // $*CWD.absolute));
$handle // $handle.throw;
}
}
Expand Down

0 comments on commit 339ea85

Please sign in to comment.