What is your suggestion?
I have recipes that do not hard-code the version and/or user reference attributes, so that my CI can pass them in to a conan create call based on, e.g., the git tag.
If I mypkg uses such a recipe, and I run conan workspace add --ref mypkg/1.0@company, I get an error:
ERROR: Editable package recipe should declare its name and version
It works if I add the --version and --user arguments. However, these values are the same as what is used in the reference. It would be nice if conan extracted these from the reference if they are not overridden.
Have you read the CONTRIBUTING guide?
What is your suggestion?
I have recipes that do not hard-code the
versionand/oruserreference attributes, so that my CI can pass them in to aconan createcall based on, e.g., the git tag.If I
mypkguses such a recipe, and I runconan workspace add --ref mypkg/1.0@company, I get an error:It works if I add the
--versionand--userarguments. However, these values are the same as what is used in the reference. It would be nice if conan extracted these from the reference if they are not overridden.Have you read the CONTRIBUTING guide?