Skip to content

Commit

Permalink
Fix Deprecated warning
Browse files Browse the repository at this point in the history
Use correct version with fallback if needed.

Closes #20
  • Loading branch information
coke committed Feb 9, 2023
1 parent 11502c3 commit 744e7a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion META6.json
Expand Up @@ -35,5 +35,5 @@
"File::Directory::Tree",
"File::Temp:ver<0.0.8+>"
],
"version": "0.2.4"
"version": "0.2.5"
}
6 changes: 5 additions & 1 deletion lib/Rakudoc/Pod/Cache.rakumod
Expand Up @@ -12,9 +12,13 @@ submethod BUILD(
:$cache-path = 'rakudoc_cache',
)
{
my $class = ::("CompUnit::PrecompilationStore::FileSystem");
if $class ~~ Failure {
$class = ::("CompUnit::PrecompilationStore::File");
}
$!cache-path = $cache-path.IO.resolve(:completely);
$!precomp-repo = CompUnit::PrecompilationRepository::Default.new(
:store(CompUnit::PrecompilationStore::File.new(:prefix($!cache-path))),
:store($class.new(:prefix($!cache-path))),
);
}

Expand Down

0 comments on commit 744e7a2

Please sign in to comment.