unit class CompUnit::Repository::DependencyTracker does CompUnit::Repository;

CompUnit::RepositoryRegistry.use-repository($?CLASS.new);

my %seen := SetHash.new;

method need(
CompUnit::DependencySpecification
$spec,
CompUnit::PrecompilationRepository $precomp?
) {
   %seen{$spec.Str}++;
   self.next-repo.need($spec, CompUnit::PrecompilationRepository::None);
}

method id() { 'dependencytracker' }
method loaded() { [] }
method path-spec() { 'dependencytracker#' }

END say %seen;