question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] How to get the exported recipe reference for further commands?

See original GitHub issue

This 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:open
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Feb 18, 2020

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.

0reactions
igor-sadchenkocommented, Apr 20, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conan export — conan 1.44.1 documentation
Use the 'reference' param to specify a user and channel where to export it ... The command will assume that the name and...
Read more >
How can I configure GNU Make to pass exported variables to ...
I was hoping to change them independently...one for running recipes and one for functions. I could use that to bootstrap all my shell...
Read more >
GNU make
A recipe is an action that make carries out. A recipe may have more than one command, either on the same line or...
Read more >
7 devtool Quick Reference - the Yocto Project Documentation
The devtool upgrade command upgrades an existing recipe to a more recent version of the recipe upstream. The command puts the upgraded recipe...
Read more >
21.7. The /etc/exports Configuration File
The exportfs Command. Every file system being exported to remote users via NFS, as well as the access level for those file systems,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found