Skip to content

Commit 4abd334

Browse files
committed
Add CompUnit::Repository::Unknown
Part of #4591
1 parent 2737733 commit 4abd334

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
=begin pod :kind("Type") :subkind("class") :category("domain-specific")
2+
3+
=TITLE class CompUnit::Repository::Unknown
4+
5+
=SUBTITLE CompUnit::Repository::Unknown
6+
7+
=for code :preamble<role CompUnit::Repository {};>
8+
class CompUnit::Repository::FileSystem
9+
does CompUnit::Repository
10+
{ }
11+
12+
A L<C<CompUnit::Repository>|/type/CompUnit::Repository> placeholder that is used
13+
when the type of the Repository is unknown.
14+
in development situations. This is what is used by C<-I .> / C<-I lib> (which are
15+
actually C<-I file#.> and C<-I file#lib>) or C<use lib "."> / C<use lib "lib">.
16+
Unlike L<C<CompUnit::Repository::Installation>|/type/CompUnit::Repository::Installation>, this represents a single distribution.
17+
18+
=head1 Methods
19+
20+
=head2 method need
21+
22+
=for code :method :preamble<method !precomp-stores() {...};>
23+
method need(
24+
CompUnit::DependencySpecification $spec,
25+
CompUnit::PrecompilationRepository $precomp?,
26+
CompUnit::PrecompilationStore :@precomp-stores
27+
--> CompUnit:D)
28+
29+
This class passes any requests up the repository chain, and does not resolve them itself.
30+
31+
=head2 method loaded
32+
33+
method loaded(--> Iterable:D)
34+
35+
Always returns an empty L<C<Iterable>|/type/Iterable>.
36+
37+
=end pod

0 commit comments

Comments
 (0)