[question] How to get the exported recipe reference for further commands?
See original GitHub issueThis question somehow relates to #1746, and is currently appearing as we implement some CI workflows:
Let’s imagine we have a recipe file which contains name
and version
members. When we export this recipe, we only provide the user
and channel
, and conan export
is able to create a complete recipe reference by assembling the in-recipe members with the command-line parameters. The complete recipe reference ends-up being the usual name/version@user/channel
Yet, if we now want to use further commands in the pipeline, some commands will require a complete recipe reference, such as conan upload
. What would be the recommended way to find such recipe reference?
(We are currently parsing the standard output of conan export
, but that feels very brittle)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
The PR https://github.com/conan-io/conan/pull/6559 removes the WARN, and will be released next 1.23. I am leaving this issue open, we might want to make
conan export
to return structured (json?) output containing the recipe reference, even with revision.@memsharded Conan version 1.24.0 This warning
WARN: Remotes registry file missing, creating default one in /root/.conan/remotes.json
also appears when use command:conan remote add Conan-index https://artifactory.net/artifactory/api/conan/conan --force --insert 0
for the first time. When I use--force
I do not expect any useless warnings.