From 05f9ec216833b3ebdae00c3d19b3c68047a3c325 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Thu, 22 Feb 2024 10:34:23 +0100 Subject: [PATCH] make precompile workload relocatable (#236) --- src/Downloads.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Downloads.jl b/src/Downloads.jl index 8d3cace..7a6cde4 100644 --- a/src/Downloads.jl +++ b/src/Downloads.jl @@ -468,7 +468,8 @@ end # Precompile let d = Downloader() - download("file://" * @__FILE__; downloader=d) + f = mktemp()[1] + download("file://" * f; downloader=d) precompile(Tuple{typeof(Downloads.download), String, String}) precompile(Tuple{typeof(Downloads.Curl.status_2xx_ok), Int64}) end