-
-
Save ugexe/ce6330421e9ffe8c1dc7ead19b822f7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\ugexe\.rakudobrew\moar-blead-master>git diff | |
diff --git a/src/core/CompUnit/PrecompilationStore/File.pm6 b/src/core/CompUnit/PrecompilationStore/File.pm6 | |
index 204fda5bb..5ab480c70 100644 | |
--- a/src/core/CompUnit/PrecompilationStore/File.pm6 | |
+++ b/src/core/CompUnit/PrecompilationStore/File.pm6 | |
@@ -181,7 +181,10 @@ class CompUnit::PrecompilationStore::File does CompUnit::PrecompilationStore { | |
} | |
method remove-from-cache(CompUnit::PrecompilationId $precomp-id) { | |
- $!update-lock.protect: { %!loaded{$precomp-id}:delete }; | |
+ $!update-lock.protect: { | |
+ %!loaded{$precomp-id}.?close(); | |
+ %!loaded{$precomp-id}:delete; | |
+ }; | |
} | |
method destination(CompUnit::PrecompilationId $compiler-id, | |
diff --git a/t/02-rakudo/reproducible-builds.t b/t/02-rakudo/reproducible-builds.t | |
index e3e15ed91..9b4fc3c4a 100644 | |
--- a/t/02-rakudo/reproducible-builds.t | |
+++ b/t/02-rakudo/reproducible-builds.t | |
@@ -21,8 +21,8 @@ for ^2 -> $run { | |
$store.remove-from-cache($id); | |
$store.delete-by-compiler($compiler-id); | |
} | |
-$store.prefix.child('.lock').unlink; | |
-$store.prefix.rmdir; | |
+#$store.prefix.child('.lock').unlink; | |
+#$store.prefix.rmdir; | |
is @checksums[1], @checksums[0], 'Both precompilation runs resulted in the same checksum' | |
or do { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment