Skip to content

Commit

Permalink
Merge pull request #570 from ugexe/avoid-invalid-resource-error
Browse files Browse the repository at this point in the history
Make sure there is a path part to create path from
  • Loading branch information
ugexe authored Sep 18, 2024
2 parents da187d3 + 2f067ce commit b5524ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zef/Distribution/Local.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Zef::Distribution::Local is Zef::Distribution {
my $lib-path = $res-path.child('libraries');

return %meta<resources>.grep(*.defined).map(-> $resource {
my $resource-path = $resource ~~ m/^libraries\/(.*)/
my $resource-path = $resource ~~ m/^libraries\/(.+)/
?? $lib-path.child($*VM.platform-library-name(IO::Path.new($0, :CWD($!path))))
!! $res-path.child($resource);
$resource => $resource-path.IO.is-relative
Expand Down

0 comments on commit b5524ab

Please sign in to comment.