-
-
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
[RFC] don't load Pkg automatically #28206
Conversation
don't load Pkg automatically in interactive use
Also, people that really want |
We shouldn’t need to embed a second programming language just to install packages
In the future, I think we expect to do much more of this. Pkg and InteractiveTools are simply the demo cases right now. |
Please don't make irrelevant gripes about the lack of API documentation of Pkg in others PR. There is a Julia API and it is being documented right now. This PR has nothing to do with that. |
That seems completely unrelated to this PR. If you want to use
Perhaps, but it should not be implemented like this, it has to be configurable. Otherwise the language makes it impossible to load other packages with the same name. |
This isn't necessarily true or desirable. We're planning to remove Pkg from the system image as soon as we can without significantly impacting performance. The |
So even more reason to do this then? |
Why? Activating the REPL mode can automatically load Pkg. All the more reason to prefer the REPL mode. |
Will merge this in a while unless someone objects since otherwise it is impossible to load another package called Pkg (for example when developing it). |
The new code has made this annoyingly long to type, but let's not get carried away with calling it impossible. Specifically, it should be: |
In fbc30cd automatic loading of
Pkg
was added in interactive use. I propose to revert this for the following reasons:Pkg
REPL, which will work regardless of this.Pkg
.