You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was trying to fix the bug before I saw the fix in #1398 I just commented out the following lines (I have no idea why they would need to be there, and they caused the root to be set back to the wrong value)
But I wonder if that's really correct, should the root really be the same for all the nodes? I don't know the codebase and the Conan internals well enough to answer that.
Logs
No response
The text was updated successfully, but these errors were encountered:
Hi @fredizzimo thanks a lot for your report, we appreciate it (Doing such a good investigation on your part proved extremely useful in tracking the issue down too 🫶)
You were spot on with the root cause too! I have simplified the code a bit and will add some more tests to this section before merging :)
Environment details
Conan release/2.0 branch
Steps to reproduce
#13983 tries to fix editable packages with a root. But the fix does not quite work, since root is applied twice for the main node.
This can be seen by changing the test to
The source folder becomes the parent of
c.current_folder
and the test fails.The same thing can be observed when changing root to
root
for example, then all the paths getsroot/root
instead of justroot
Here's the explanation of what happens:
conan/conans/client/installer.py
Line 349 in 4f97fea
set_base_folders
, which already sets the root as can be seen hereconan/conans/model/layout.py
Lines 77 to 78 in 4f97fea
When I was trying to fix the bug before I saw the fix in #1398 I just commented out the following lines (I have no idea why they would need to be there, and they caused the root to be set back to the wrong value)
conan/conans/client/installer.py
Lines 362 to 365 in 4f97fea
Another thing that seems to work is to move
conan/conans/client/installer.py
Lines 347 to 348 in 4f97fea
set_base_folders
call.But I wonder if that's really correct, should the root really be the same for all the nodes? I don't know the codebase and the Conan internals well enough to answer that.
Logs
No response
The text was updated successfully, but these errors were encountered: