Skip to content

Commit

Permalink
remove --lockfile-packages (conan-io#15499)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Jan 23, 2024
1 parent f606cfc commit 7387611
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conan/cli/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def add_lockfile_args(parser):
parser.add_argument("--lockfile-out", action=OnceArgument,
help="Filename of the updated lockfile")
parser.add_argument("--lockfile-packages", action="store_true",
help="Lock package-id and package-revision information")
help=argparse.SUPPRESS)
parser.add_argument("--lockfile-clean", action="store_true",
help="Remove unused entries from the lockfile")
parser.add_argument("--lockfile-overrides",
Expand Down
2 changes: 2 additions & 0 deletions conan/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def __init__(self, conan_api, *args, **kwargs):
def parse_args(self, args=None, namespace=None):
args = super().parse_args(args)
ConanOutput.define_log_level(os.getenv("CONAN_LOG_LEVEL", args.v))
if getattr(args, "lockfile_packages", None):
ConanOutput().error("The --lockfile-packages arg is private and shouldn't be used")
if args.core_conf:
from conans.model.conf import ConfDefinition
confs = ConfDefinition()
Expand Down
1 change: 1 addition & 0 deletions conans/test/integration/lockfile/test_lock_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test_lock_packages(requires):
prev = client.created_package_revision("pkg/0.1")

client.run("lock create consumer/conanfile.txt --lockfile-packages")
assert "ERROR: The --lockfile-packages arg is private and shouldn't be used" in client.out
assert "pkg/0.1#" in client.out
lock = client.load("consumer/conan.lock")
assert NO_SETTINGS_PACKAGE_ID in lock
Expand Down

0 comments on commit 7387611

Please sign in to comment.