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

Make PRESERVE_TIERED_INSTALLED the default #3905

Open
IanButterworth opened this issue May 22, 2024 · 2 comments
Open

Make PRESERVE_TIERED_INSTALLED the default #3905

IanButterworth opened this issue May 22, 2024 · 2 comments

Comments

@IanButterworth
Copy link
Sponsor Member

Since PRESERVE_TIERED_INSTALLED was added to Pkg.add in 1.9 I've had it enabled as the default via the env var

JULIA_PKG_PRESERVE_TIERED_INSTALLED = true

and I've not seen any issues with getting stuck on older package versions, as was feared.

In short it tries harder to avoid updating packages that are already installed, to minimize installation and re-precompilation.

Given precompilation times have been increasing as precompilation workload coverage increases I think it would be good to make that the default behavior.

It'd be good to hear from others that have used that setting to see if there are any negatives identified.

@fredrikekre
Copy link
Member

Xref #3890 (comment)

@jakobnissen
Copy link
Contributor

jakobnissen commented May 27, 2024

I have also set ENV["JULIA_PKG_PRESERVE_TIERED_INSTALLED"] = true in my startup.jl for ages - at least a year. and I haven't had any issues. Though to be fair, I do fairly frequently disable startup.jl when I'm developing packages. I agree this is a better default for most people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants