From a95acc666edef1008e5900d901fb078db541229b Mon Sep 17 00:00:00 2001 From: Steve Kelly Date: Fri, 19 Apr 2024 18:49:29 -0400 Subject: [PATCH] only run precompile workload when generating output otherwise we run code at module load each time. --- src/Downloads.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Downloads.jl b/src/Downloads.jl index 7a6cde4..22c2419 100644 --- a/src/Downloads.jl +++ b/src/Downloads.jl @@ -466,7 +466,7 @@ function default_downloader!( end # Precompile -let +if Base.generating_output() d = Downloader() f = mktemp()[1] download("file://" * f; downloader=d)