-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] conan-2.0.4 and conan inspect with set_version #13970
Comments
Hi @maitrey thanks for your question. What's the output of The logic is a bit complicated so if you could try to create a reduced test case it would help a lot, a simpler version locally does work as expected :) |
Hi @RubenRBS , Here is the output of conan inspect:
The set_version I have modified to have different naming convention for branch builds and tag builds. conan inspect says that it supports set_version: https://docs.conan.io/2/reference/commands/inspect.html?highlight=set_version |
Also, all of it was allowed in 1.x: https://docs.conan.io/1/howtos/capture_version.html and I used conan inspect which was working well to provide name and versions of the recipe. I wonder why conan inspect was changed in 2.x . |
Oh sorry for the confusion, I would have sworn that 2.0.4 already had support for it and that's why it confused me as to why it was not working. |
Oh No :( . With 2.0.5 I actually read some issues last evening and saw there was a fix for conan inspect but did not find a mention about it in the Changelog. Has 2.0.5 got changes with respect to global.conf?
And the only place where I use path is in the global.conf:
|
Oops, you found an issue with our release process. For some reason the changelog in the docs for 2.0.5 was not complete! (Already fixed by @czoido conan-io/docs#3235, thanks for noticing 😃) If you look at the full changelog (Also available in https://github.com/conan-io/conan/releases/tag/2.0.5) the inspect changes do show up there. As for your That line in your conf is not having any effect in Conan 2. Env variables should be modified in the Also, if what you're trying to achieve is to have your own CMake used instead of having Conan download/build it when a recipe has a Then, to have Conan find the proper CMake, you have then two options:
I hope this makes a bit more sense now why you were seeing that error and the way forward, but please do not hesitate in asking any other question should you have more :) |
conan inspect now works with 2.0.5 and the global.conf works only with:
Thanks for fixing the changelog. |
Just beware that:
Has no effect at all in Conan. Only recipes explicitly loading |
Hi @memsharded ! Thanks for noticing my comment and also helping me fix my issues. I will add the path variables to the buildenv section of the profiles. Many thanks for your support! |
Happy to help! 🙂 |
What is your question?
Dear Conan Folks,
For all my recipes, I use the below code to determine the version of packages:
I use conan inspect command and the below command returns null as the version:
I use conan version 2.0.4. What am I missing? Could someone please help me?
Thanks!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: