Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions conan/api/subapi/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,11 @@ def _init_options(conanfile, options):

def super_build_graph(self, deps_graph, profile_host, profile_build):
order = []
packages = self._ws.packages()
packages = self.packages()

def find_folder(ref):
return next(p["path"] for p in packages if RecipeReference.loads(p["ref"]) == ref)
return next(os.path.dirname(os.path.relpath(p["path"], self._folder)) for p_ref, p in
packages.items() if p_ref == ref)

for level in deps_graph.by_levels():
items = [item for item in level if item.recipe == "Editable"]
Expand Down
5 changes: 5 additions & 0 deletions test/integration/workspace/test_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,11 @@ def test_workspace_defining_only_paths():
assert "liba/0.1@myuser/mychannel - Editable" in c.out
assert "libb/0.1 - Editable" in c.out

c.run("workspace super-install")
assert "app1/0.1 - Editable" in c.out
assert "liba/0.1@myuser/mychannel - Editable" in c.out
assert "libb/0.1 - Editable" in c.out


def test_workspace_defining_duplicate_references():
"""
Expand Down
Loading