[question] Conan Package for associated git commit
See original GitHub issueHello,
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?
- I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
SCM has a
revision_mode
attribute which can be changed from the default (hash
toscm
). This will make the ConanRREV
value use the GIT revision instead of hashing the sources. Then, you can justconan install rref#git_revision
. Is that correct @memsharded @jgsogo ?