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

Unclear documentation about new workspace feature #3862

Open
moble opened this issue Apr 4, 2024 · 1 comment
Open

Unclear documentation about new workspace feature #3862

moble opened this issue Apr 4, 2024 · 1 comment

Comments

@moble
Copy link

moble commented Apr 4, 2024

I'm very excited about this new workspace feature; it sounds like it could really improve a lot of workflows. I've read the new documentation and the entire thread for the PR that introduced it. But there's something I just don't understand about this new feature, and I suspect @lassepe was getting at this in this comment. Specifically, when users of my package run add CoolPackage will Pkg install and/or restrict versions so that all the dependencies in CoolPackage/test and CoolPackage/docs will/can also be satisfied? Or will add CoolPackage act as though only the top-level project exists, while I'll have to do something else to get this monolithic resolution?

Let's take a hypothetical: My docs will require Plots. But maybe for some reason, that depends on an old version of SomeWeirdPackage package, which is fine when I'm just making plots, but my users really want the newest version of SomeWeirdPackage for some awesome update. Will the workspaces that I set up for my own convenience cause a conflict for them?

@KristofferC
Copy link
Sponsor Member

KristofferC commented Apr 17, 2024

Specifically, when users of my package run add CoolPackage will Pkg install and/or restrict versions so that all the dependencies in CoolPackage/test and CoolPackage/docs will/can also be satisfied?

No, since CoolPackage is not in your workspace. If a user git cloned CoolPackage and explicitly added it to an active workspace then the workspace of CoolPackage would "become active".

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

2 participants