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

Setting preferences for other packages. #39

Open
lassepe opened this issue Apr 25, 2022 · 4 comments
Open

Setting preferences for other packages. #39

lassepe opened this issue Apr 25, 2022 · 4 comments

Comments

@lassepe
Copy link

lassepe commented Apr 25, 2022

In one of my packages, say PkgA, I would like to set a preference for one of its dependencies, say PkgB. I did so by setting the preference key-value-pair in PkgA/Project.toml. When I activate the env of PkgA this does what I want. However, when I depend on PkgA in another package, say PkgC (which does not have any preferences set at all), then the preference I specified in the PkgA/Project.toml for PkgB's config value is not loaded. Is there a way to achieve this or is this beyond the (current) scope of this package?

@pxl-th
Copy link

pxl-th commented Jun 25, 2022

Similarly, when package A depends on package B and I change preferences in LocalPreferences.toml for A, then launch tests ]test for A, it does not load preferences for B, even though they are specified in LocalPreferences.toml.

But when loading package A directly, it loads preferences for B as well.

@giordano
Copy link
Member

@pxl-th I think that's #24.

@pxl-th
Copy link

pxl-th commented Jun 26, 2022

@pxl-th I think that's #24.

Indeed, thanks.

@nathanaelbosch
Copy link

Is there any update on the original question by @lassepe for how to set preferences on package dependencies, that should be passed on to other packages unless overridden?

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

No branches or pull requests

4 participants