Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created January 29, 2016 22:27
Show Gist options
  • Save hoelzro/2f20982533014c1c9874 to your computer and use it in GitHub Desktop.
Save hoelzro/2f20982533014c1c9874 to your computer and use it in GitHub Desktop.
diff --git a/src/core/CompUnit/Repository/Locally.pm b/src/core/CompUnit/Repository/Locally.pm
index bab6b34..cd1a330 100644
--- a/src/core/CompUnit/Repository/Locally.pm
+++ b/src/core/CompUnit/Repository/Locally.pm
@@ -3,9 +3,8 @@ role CompUnit::Repository::Locally {
has IO::Path $.prefix is required;
has Str $.WHICH;
- my %instances;
-
method new(CompUnit::Repository::Locally: Str:D :$prefix, CompUnit::Repository :$next-repo) {
+ state %instances;
my $abspath := $*SPEC.rel2abs($prefix);
my $IO := IO::Path.new-from-absolute-path($abspath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment