-
Notifications
You must be signed in to change notification settings - Fork 993
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
[question] Workspace with editable package in the middle of the dependency graph #17225
Comments
Thanks for your question.
I am not sure I understand this. Are you sure you meant there I see that you are trying to use If the In the meantime, it might be more pragmatic and effective to use a script that manages |
Hi @memsharded , thanks for your reply.
I meant "even though
see:
Yeah, that's quite an old setup for an old project. We have migration to conan-2 on our radar, but I can't influence the schedule, so I'm stuck with this old setup for now. We can switch to
I wanted to avoid manual scripting, but it seems to be the only possible way forward. |
But it seems there is some discrepancy there. The workspace contains |
What is your question?
Hi! I have a relatively big project with dozens of packages maintained by multiple teams. Some teams want to have a conan workspace (we're still using conan-1) with editable package that they maintain, but without other packages. And I can't make it work.
For simplicity let's assume we have an
app
(a top-level package), which depends on static librariesliba
andlibb
.libb
also depends onliba
.libb
has tests (which transitively depend onliba
) which run inbuild()
method of its conanfile. A complete setup can be found here: https://github.com/AndreyNautilus/conan-workspace-playgroundIf I create a workspace with
app
andliba
as editables:then I can run
conan workspace install
and build the app and everything works. But in this setupliba
is obviously not editable (changes toliba
are not picked up whenapp
is rebuilt).If I add
liba
toroot:
of the workspace:then
conan workspace install
starts to fail with:That's a reasonable failure:
liba
is an editable package, it's not built yet, butlibb
already requires it. It looks like a chicken-and-egg problem. Is it even possible to achieve such setup with conan workspaces?Dependency on
liba
in tests oflibb
is just one example. Another kind of dependencies could be thatliba
generates headers thatlibb
uses.I would like to have a command the can build the editables and inject them into the dependency group automatically. Is it possible?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: