Skip to content

Commit 89b2d19

Browse files
committed
Traversing @*INC correctly
1 parent 2475551 commit 89b2d19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/p6doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sub tempfile() {
2727

2828
sub search-paths() {
2929
(findbin() X~ <../doc/perl6/lib/ ../lib/> X~ '',<Type/ Language/ Routine/>),
30-
@*INC>>.Str.map({ /\/$/ ?? $_ !! $_ ~ '/' });
30+
@*INC.map({CompUnitRepo.new($_)})».IO».Str.map({ /\/$/ ?? $_ !! $_ ~ '/' });
3131
}
3232

3333
sub module-names(Str $modulename) {

bin/p6doc-index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ multi sub MAIN('build') {
2828

2929
# XXX p6doc probably uses another path to @*INC which is probably incomplete
3030

31-
for ( @*INC ) -> $lib_path is copy {
31+
for @*INC.map({CompUnitRepo.new($_)})».IO -> $lib_path is copy {
3232

3333
$lib_path = $lib_path.Str;
3434
my @files := find(:dir($lib_path),:type('file'));

0 commit comments

Comments
 (0)