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

Include default user depot when JULIA_DEPOT_PATH has leading empty entry #56195

Merged

Conversation

IanButterworth
Copy link
Member

Fixes #56172

I don't believe this change from #51448 was critical to the goal of that PR.
i.e. Is there a reason someone might want to replace the default user depot and move it to after the bundled depots? Seems bad because packages would be saved into the first depot in DEPOT_PATH, so the stdlib depot..

So I'm proposing we revert that particular behavior to reduce breakage.

@IanButterworth IanButterworth added packages Package management and loading backport 1.11 Change should be backported to release-1.11 labels Oct 16, 2024
Copy link
Member

@maleadt maleadt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This seems like a good fix, avoiding breakage without removing the added value of #51448 in its most common use case. I really dislike the whole magical nuanced expansion semantics of empty strings though, I wish we had gone with something more obvious (like named non-path placeholders for special expansions, e.g., user:bundled:/foo), but I guess that's too late now.

@IanButterworth IanButterworth merged commit af51bcc into JuliaLang:master Oct 17, 2024
9 checks passed
@IanButterworth IanButterworth deleted the ib/depot_path_leading branch October 17, 2024 11:27
KristofferC pushed a commit that referenced this pull request Oct 18, 2024
@KristofferC KristofferC mentioned this pull request Oct 18, 2024
43 tasks
@giordano giordano removed the backport 1.11 Change should be backported to release-1.11 label Oct 19, 2024
KristofferC added a commit that referenced this pull request Nov 21, 2024
Backported PRs:
- [x] #55886 <!-- irrationals: restrict assume effects annotations to
known types -->
- [x] #55867 <!-- update `hash` doc string: `widen` not required any
more -->
- [x] #56084 <!-- slightly improve inference in precompilation code -->
- [x] #56088 <!-- make `Base.ANSIIterator` have a concrete field -->
- [x] #54093 <!-- Fix `JULIA_CPU_TARGET` being propagated to workers
precompiling stdlib pkgimages -->
- [x] #56165 <!-- Fix markdown list in installation.md -->
- [x] #56148 <!-- Make loading work when stdlib deps are missing in the
manifest -->
- [x] #56174 <!-- Fix implicit `convert(String, ...)` in several places
-->
- [x] #56159 <!-- Add invalidation barriers for `displaysize` and
`implicit_typeinfo` -->
- [x] #56089 <!-- Call `MulAddMul` instead of multiplication in
_generic_matmatmul! -->
- [x] #56195 <!-- Include default user depot when JULIA_DEPOT_PATH has
leading empty entry -->
- [x] #56215 <!-- [REPL] fix lock ordering mistake in load_pkg -->
- [x] #56251 <!-- REPL: run repl hint generation for modeswitch chars
when not switching -->
- [x] #56092 <!-- stream: fix reading LibuvStream into array -->
- [x] #55870 <!-- fix infinite recursion in `promote_type` for
`Irrational` -->
- [x] #56227 <!-- Do not call `rand` during sysimage precompilation -->
- [x] #55741 <!-- Change annotations to use a NamedTuple -->
- [x] #56149 <!-- Specialize adding/subtracting mixed
Upper/LowerTriangular -->
- [x] #56214 <!-- fix precompile process flags -->
- [x] #54471
- [x] #55622
- [x] #55704
- [x] #55764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPOT_PATH expansion from JULIA_DEPOT_PATH behavior change between 1.10 and 1.11
3 participants