File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -617,14 +617,18 @@ end
617617
618618# Helper function to install packages also in Julia v1.8
619619function Pkg_add (args... ; kwargs... )
620- @static if VERSION < v " 1.8.0"
621- Pkg. add (args... ; kwargs... )
622- else
623- try
624- Pkg. respect_sysimage_versions (false )
620+ # we don't want to precompile packages during installation
621+ # auto-precompilation also calls `Pkg.instantiate` which will warn about non-VERSION `julia_version` values
622+ withenv (" JULIA_PKG_PRECOMPILE_AUTO" => " false" ) do
623+ @static if VERSION < v " 1.8.0"
625624 Pkg. add (args... ; kwargs... )
626- finally
627- Pkg. respect_sysimage_versions (true )
625+ else
626+ try
627+ Pkg. respect_sysimage_versions (false )
628+ Pkg. add (args... ; kwargs... )
629+ finally
630+ Pkg. respect_sysimage_versions (true )
631+ end
628632 end
629633 end
630634end
You can’t perform that action at this time.
0 commit comments