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

update note on package extensions #3451

Merged
merged 4 commits into from
May 4, 2023
Merged

Conversation

ranocha
Copy link
Member

@ranocha ranocha commented Apr 25, 2023

This is based on a discussion with @KristofferC.

Closes JuliaLang/julia#49497

get the functionality from the extension. The other way round does not work, i.e., if you load a package having
an extension from a project environment and then load the package required for the extension from you main/default
environment, the extension will not be loaded. This is different from the behavior of Requires.jl. Thus, package
extensions are not full replacements of the behavior of Requires.jl.
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest removing the last sentence since it doesn't really add anything. You have already described the difference. Perhaps the sentence before it can be made more explicit, something like

This is different from the behavior of Requires.jl where the conditional code is evaluated no matter from what environment the "extension dependency" is loaded

maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good suggestion. I updated the text accordingly.

@ranocha ranocha requested a review from KristofferC April 25, 2023 15:11
@IanButterworth
Copy link
Member

bump

@KristofferC KristofferC merged commit 6f02014 into JuliaLang:master May 4, 2023
@ranocha ranocha deleted the patch-2 branch May 4, 2023 10:29
IanButterworth pushed a commit to IanButterworth/Pkg.jl that referenced this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package extensions not loaded when loading dependency from main environment?
3 participants