From 17fc0a0e3870030dc5db5e14c0a798b65ef7e557 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 15 Dec 2018 15:14:26 -0800 Subject: Fix for files getting run twice by (use "") --- nomsu_environment.moon | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nomsu_environment.moon') diff --git a/nomsu_environment.moon b/nomsu_environment.moon index cc059b5..6986b77 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -179,6 +179,10 @@ nomsu_environment = Importer{ continue unless files for filename in *files lua_filename = filename\gsub("%.nom$", ".lua") + -- Need to check here to prevent re-running files + if environment.FILE_CACHE[filename] + import_to_1_from(environment, environment.FILE_CACHE[filename], prefix) + continue -- TODO: don't automatically use precompiled version? code = if optimization != 0 and Files.read(lua_filename) -- TODO: use a checksum? -- cgit v1.2.3