conan icon indicating copy to clipboard operation
conan copied to clipboard

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

Open antoinebardoz opened this issue 1 year ago • 1 comments

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

antoinebardoz avatar Feb 16 '24 10:02 antoinebardoz