Skip to content

[bug] path argument no longer position independent for "conan lock create" in Conan 2.1.0 #3629

@antoinebardoz

Description

@antoinebardoz

Environment details

  • Operating System+version: Ubuntu 22.04
  • Compiler+version: N/A
  • Conan version: 2.1.0
  • Python version: 3.10.8

Steps to reproduce

  1. conan lock create -r myremote -u path/to/conanfile
  2. Conan returns: ERROR: Please specify a path to a conanfile or a '--requires=<ref>'

This doesn't happen if I don't have -u in the command. It also doesn't happen if I put the path first:
conan lock create path/to/conanfile -r myremote -u

This may apply to all commands. I saw it specifically with conan lock create, but after checking, I saw it happen with conan create as well.

Logs

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions