-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to compilecache
so that Pkg precompilation can not skip different versions of loaded modules
#40345
add option to compilecache
so that Pkg precompilation can not skip different versions of loaded modules
#40345
Conversation
Might need a better (more descriptive) name, such as |
Or could take |
I assume the sockets test failure is unrelated. Can we merge this so the Pkg PR can be tested? |
Btw, the first suggestion was easier so I went with that. Hope that's ok. Thanks |
…different versions of loaded modules (JuliaLang#40345) * allow Pkg precomp to not skip loaded modules * rename to ignore_loaded_modules * arg alignment
…different versions of loaded modules (JuliaLang#40345) * allow Pkg precomp to not skip loaded modules * rename to ignore_loaded_modules * arg alignment
…different versions of loaded modules (JuliaLang#40345) * allow Pkg precomp to not skip loaded modules * rename to ignore_loaded_modules * arg alignment
Paired with JuliaLang/Pkg.jl#2484
If I understand correctly, classical code-load precompilation skips precompiling different versions of loaded packages to save time, given they won't be loadable in the current session.
For the new pkg precompilation process this seems less critical.
The
compilecache
option added in this PR, along with JuliaLang/Pkg.jl#2484 allows Pkg precompilation to precompile the different version of loaded packages, but warn the user that the package is loaded so the new version won't be accessible until after a session restart.This avoids the
?
state in pkg precompilation that delayed precompilation until after session restart, which means the remaining precompilation was likely to happen at slower code-load as the user has to remember to go back to pkg mode and precompile.The new behavior does all the precompilation in the current session, but reports as yellow
✓
's, with an explanation that a restart is needed to access the new versions.More details in JuliaLang/Pkg.jl#2484