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
2 changes: 1 addition & 1 deletion conan/cli/commands/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def workspace_create(conan_api: ConanAPI, parser, subparser, *args):

build_mode = args.build if args.build else []
ConanOutput().box("Exporting workspace recipes to Conan cache")
exported_refs = conan_api.workspace.export()
exported_refs = conan_api.workspace.export(lockfile=lockfile, remotes=remotes)
build_mode.extend(f"missing:{r}" for r in exported_refs)

all_packages = conan_api.workspace.packages()
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 @@ -2040,6 +2040,7 @@ class Lib(ConanFile):

def test_ws_python_requires_only_in_remote(self):
# https://github.com/conan-io/conan/issues/20170
# "workspace create" case: https://github.com/conan-io/conan/issues/20260
c = TestClient(light=True, default_server_user=True)
pyreq = textwrap.dedent("""\
from conan import ConanFile
Expand Down Expand Up @@ -2083,6 +2084,10 @@ class TestPackage(ConanFile):
c.run("remove * -c")
c.run("workspace super-install")
assert "pyreq/0.1: Downloaded" in c.out
c.run("remove * -c")
c.run("workspace create")
assert "pyreq/0.1: Downloaded" in c.out
assert "Exported: pkg/0.1" in c.out

def test_ws_python_requires_editable(self):
c = TestClient(light=True)
Expand Down
Loading