diff --git a/src/precompile.jl b/src/precompile.jl index 0bc336866d..161aa14ef1 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -80,7 +80,8 @@ function pkg_precompile() DEFAULT_IO[] = UnstableIO(devnull) Downloads.DOWNLOADER[] = Downloads.Downloader(; grace=1.0) - withenv("JULIA_PKG_SERVER" => nothing) do + # We need to override JULIA_PKG_UNPACK_REGISTRY to fix https://github.com/JuliaLang/Pkg.jl/issues/3663 + withenv("JULIA_PKG_SERVER" => nothing, "JULIA_PKG_UNPACK_REGISTRY" => nothing) do tmp = _run_precompilation_script_setup() withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do Pkg.add("TestPkg")