-
-
Notifications
You must be signed in to change notification settings - Fork 285
allow changing stdlib dir in context #2266
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
base: master
Are you sure you want to change the base?
Conversation
|
What's the current behavior? Does it error? Perhaps Pkg should read and store the stdlib projects during compilation time of it. |
|
yeah, the simplest case is wrapping |
what does compilation mean here? the PackageCompiler compilation stage? e.g let PackageCompiler modify the |
|
Ah I think I get what @KristofferC mean now, do you mean
I just realize since there is |
Yes, any reading of stdlib files during runtime seems vulnerable to the issue here when Pkg is run in a way where these files are not accessible.
I dunno, probably not? You would have to describe the exact workflow you mean for developing stdlibs. |
|
OK, so I go through the implementation related to this in
I was not sure, but I find the answer should be no since all stdlibs can be developed using a different UUID so there won't be anything to do with stored stdlib info. for stdlibs in most cases, there are no version specifications except for some fake JLL packages. However, if we load stdlib's |
That should just be fixed there then (JuliaLang/julia#38743). |
Tho in most cases we can assume
Pkgships with a complete installation of Julia, but when one generates a standalone app with PackageCompiler, this might not be true, and not all the files in stdlibs will be shipped with such kind of app. But there are cases that packages might depend onPkg:This PR make
stdlib_diravailable to change inContext, so this won't prevent developers to ship their own standalone app with certain stdlib files (or alternative stdlib files located other places).