File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -604,14 +604,18 @@ end
604
604
605
605
# Helper function to install packages also in Julia v1.8
606
606
function Pkg_add (args... ; kwargs... )
607
- @static if VERSION < v " 1.8.0"
608
- Pkg. add (args... ; kwargs... )
609
- else
610
- try
611
- Pkg. respect_sysimage_versions (false )
607
+ # we don't want to precompile packages during installation
608
+ # auto-precompilation also calls `Pkg.instantiate` which will warn about non-VERSION `julia_version` values
609
+ withenv (" JULIA_PKG_AUTO_PRECOMPILE" => " false" ) do
610
+ @static if VERSION < v " 1.8.0"
612
611
Pkg. add (args... ; kwargs... )
613
- finally
614
- Pkg. respect_sysimage_versions (true )
612
+ else
613
+ try
614
+ Pkg. respect_sysimage_versions (false )
615
+ Pkg. add (args... ; kwargs... )
616
+ finally
617
+ Pkg. respect_sysimage_versions (true )
618
+ end
615
619
end
616
620
end
617
621
end
You can’t perform that action at this time.
0 commit comments