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.

[feature] select latest recipe revision matching client version

See original GitHub issue

If currently a recipe is updated on the remote index, the new revision will be automatically selected independent of the conan client version. This is especially a problem if the newer recipe is no longer compatible with an older conan client. In this case, it is displayed that the recipe requires a newer client version or in the worst case that some imports cannot be found (because the min. conan version is usually after the imports in the recipe).

Wouldn’t it be better to not select always the latest but the latest compatible recipe revision?

This would probably require that instead of _resolve_latest_ref either all are resolved (probably inefficient because the recipes must all be fetched?) or conan starts from the latest one and continues with older ones if the checked one is incompatible: https://github.com/conan-io/conan/blob/develop/conans/client/remote_manager.py#L105

Is there currently another alternative than updating conan or locking the recipe revisions?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
codetentcommented, Sep 6, 2022

Ok thank you for your suggestions! I guess for now I’m probably going with the second approach as it is for now the simplest approach … and I’m looking forward to see the first stable release of conan 2.0 with all the changes 😃

0reactions
codetentcommented, Sep 7, 2022

Just a follow up question for specifying the recipe revision in the recipe: does this also work for build requirements (with override)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package Revisions — conan 1.55.0 documentation
In the client. When a recipe is exported, Conan calculates a unique ID (revision). For every change, a new recipe revision (RREV) will...
Read more >
Chef Infra Client 16
Specifically, we'll be covering how to evaluate whether your cookbooks will be compatible with the latest versions, and how to use the tools...
Read more >
Yocto Project Reference Manual
For example, if you upgrade a recipe to use a new version of an upstream software package or you experiment with some new...
Read more >
GreengrassV2 — Boto3 Docs 1.26.29 documentation
IoT Greengrass Version 2 provides a new major version of the IoT Greengrass ... Use this API operation to specify which client devices...
Read more >
TortoiseSVN and Subversion Cookbook Part 7: Managing ...
Select SVN revision then select OK. This technique displays only the current revision but for all objects in the current folder. Caveat: ...
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