Skip to content

Commit

Permalink
Precompilation workload: set "JULIA_PKG_UNPACK_REGISTRY" => nothing (
Browse files Browse the repository at this point in the history
…#3662)

* Precompilation workload: set "JULIA_PKG_UNPACK_REGISTRY" => nothing

* Add a comment linking to the issue that this PR fixes
  • Loading branch information
DilumAluthge authored Oct 17, 2023
1 parent ffb6edf commit b39ba05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b39ba05

Please sign in to comment.