Skip to content
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

Try to add already installed versions of packages with Pkg.PRESERVE_ALL_INSTALLED #2902

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Apr 22, 2024

Using JuliaLang/Pkg.jl#3378

After this PR, when adding a package to your notebook, Pkg will try to add a version that is already installed on your computer. If nothing is available, a new version will be installed.

This should mean that you have a higher chance of skipping installation and precompilation when creating a new notebook and adding some packages that you also used a couple days ago.

If you want the latest versions, you will have to do an update right after adding the packages. This could be unintuitive, but I think it is worth the trade-off as a default, since currently there is much frustration about too-frequent installation and precompilation times.


Sorry for the delay! I was not aware of this change to Pkg until @KristofferC mentioned it to me today!

@fonsp fonsp added package manager Pluto's built-in package manager performance labels Apr 22, 2024
Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="PRESERVE_ALL_INSTALLED")
julia> using Pluto

@fonsp fonsp merged commit ab854e1 into main Apr 23, 2024
9 of 12 checks passed
@fonsp fonsp deleted the PRESERVE_ALL_INSTALLED branch April 23, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package manager Pluto's built-in package manager performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant