Skip to content

[feature] Parse reference attributes from reference when using conan workspace add --ref #20261

Description

@spectralvoid0

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?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions