Open pankgeorg opened 4 months ago
Open Julia and type:
julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="pg/pkg-sysimage-handling")
julia> using Pluto
Don't you want to disable the package manager? Like this but not just for new notebooks? https://github.com/fonsp/Pluto.jl/pull/1631
Don't you want to disable the package manager? Like this but not just for new notebooks? #1631
I think I don't, no. The Package Manager is amazing. There used to be some limitations (which I don't completely understand) that disallowed us from adding new packages and/or doing a correct resolve in the context of a sysimage. But that doesn't seem to be the case any more (1.10.2). We just need to stop the Package Manager from going crazy with packages in the sysimage, and let it do what it does best for the rest. I think this PR does that, but I haven't tested out thoroughly yet.
Experimental. When someone is using a sysimage,
using SysImageModule
triggers aPkg.add
. This avoids that. I'm still testing if this is exactly what I have in mind; we probably need to do a special treatment that is similar to stdlibs too.