From 84c0a23d44c494011abd91c35260e8a255aa45e5 Mon Sep 17 00:00:00 2001 From: Sam O'Connor Date: Sun, 13 Mar 2016 11:55:53 +1100 Subject: [PATCH] In precompiled_module_files() don't return files for modules already in the lambda_module_cache. --- src/AWSLambda.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AWSLambda.jl b/src/AWSLambda.jl index b157206..86d85f8 100644 --- a/src/AWSLambda.jl +++ b/src/AWSLambda.jl @@ -893,6 +893,8 @@ function precompiled_module_files(aws, modules::Vector{Symbol}) ex = [lambda_module_cache(aws)..., :Main, :Base, :Core] + modules = collect(filter(m->!(m in ex), modules)) + return unique([[_precompiled_module_files(i, ex) for i in modules]...;]) end @@ -1072,6 +1074,7 @@ function create_jl_lambda_base(aws; release = "release-0.4") /var/task/bin/julia -e 'Pkg.init()' $(join(["/var/task/bin/julia -e 'Pkg.add(\"$p\")'\n" for p in pkg_list])) # /var/task/bin/julia -e 'Pkg.checkout(\"AWSCore\", pull=true)' +# /var/task/bin/julia -e 'Pkg.checkout(\"AWSSDB\", pull=true)' # /var/task/bin/julia -e 'Pkg.checkout(\"AWSLambda\", pull=true)' $(join(["/var/task/bin/julia -e 'using $p'\n" for p in pkg_list]))