Skip to content

Commit

Permalink
In precompiled_module_files() don't return files for modules already
Browse files Browse the repository at this point in the history
in the lambda_module_cache.
  • Loading branch information
samoconnor committed Mar 13, 2016
1 parent 625c141 commit 84c0a23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AWSLambda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]))
Expand Down

0 comments on commit 84c0a23

Please sign in to comment.