From 57d7b77d354338da57646f8b28eaccee4a7d2525 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 21 Mar 2017 19:07:47 -0400 Subject: - Fixed a bug when hashing the module files when loading the cache. --- luxc/src/lux/compiler/cache.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'luxc/src') diff --git a/luxc/src/lux/compiler/cache.clj b/luxc/src/lux/compiler/cache.clj index 91aa8802b..c51691322 100644 --- a/luxc/src/lux/compiler/cache.clj +++ b/luxc/src/lux/compiler/cache.clj @@ -123,7 +123,7 @@ (&/|map #(.split ^String % &&core/datum-separator 2) imports))] cache-table* (&/fold% (fn [cache-table* _import] (|do [:let [[_module _hash] _import] - file-content (&&io/read-file source-dirs _module) + [file-name file-content] (&&io/read-file source-dirs _module) output (pre-load! source-dirs cache-table* _module (hash file-content) load-def-value install-all-defs-in-module uninstall-all-defs-in-module)] (return output))) @@ -204,7 +204,7 @@ (&/$Left error) (return* _compiler cache-table) - (&/$Right _compiler* file-content) + (&/$Right _compiler* [file-name file-content]) ((pre-load! source-dirs cache-table module-name (hash file-content) load-def-value install-all-defs-in-module uninstall-all-defs-in-module) _compiler*)))) -- cgit v1.2.3