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] Conan Package for associated git commit

See original GitHub issue

Hello,

we are using the conan attribute scm and the automatic detection of the revision with the auto value.

class MyConanFile(ConanFile):
    ...
    scm = {
        "type": "git",
        "url": "auto",
        "revision": "auto"
    }

Our Jenkins is automatically uploading for a new commit the associated conan package to our artifactory. In some cases i want to promote one of this conan packages to our “releases” artifactory. Most times it is not so easy to find the associated package, because of the amount of packages. The order using the rrev in artifactory does not help here much.

Is there the possibility to find with conan search (or conan info) cmd the associated conan package by handing over the git revision?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
juba895commented, Feb 18, 2021

Thanks a lot, also from my point of view we can close this issue. Would be happy if something like conan metadata search could be implemented in future to be able to search for metadata like scm attributes and only handing over the package name.

Regards!

1reaction
solvingjcommented, Feb 11, 2021

SCM has a revision_mode attribute which can be changed from the default (hash to scm). This will make the Conan RREV value use the GIT revision instead of hashing the sources. Then, you can just conan install rref#git_revision. Is that correct @memsharded @jgsogo ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - conan.io: clone package repository in consumer's working ...
Is it possible with conan to clone the package repository in the consumer's working directory and also checkout the correct version (e.g. ...
Read more >
Conan Documentation
Conan is a software package manager which is intended for C and C++ developers. Conan is universal and portable. It works in all...
Read more >
Conan packages in the Package Registry - GitLab Docs
To run conan commands, you must add the Package Registry as a Conan remote for your project or instance. Then you can publish...
Read more >
Conan: Command Not Found - Unix & Linux Stack Exchange
!/usr/bin/env bash cp tools/git/pre-commit .git/hooks/pre-commit chmod +x .git/hooks/pre-commit ; CMakeLists.txt:(20) (include): include could ...
Read more >
Usage: Automatically Linked References - Docs
Commits can be referenced using their SHA1 hash, or a portion of it of at least seven characters. They will be shown as...
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