Skip to content
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

Allow to search for new version also in local cache #2

Open
h4haase opened this issue Jun 19, 2024 · 2 comments
Open

Allow to search for new version also in local cache #2

h4haase opened this issue Jun 19, 2024 · 2 comments

Comments

@h4haase
Copy link

h4haase commented Jun 19, 2024

I made changes to a dependency and locally created a new conan package without uploading it to a conan remote. Then I tried to used conan-check-updates to batch update all packages that depend on that dependency. However, AFAICS, conan-check-updates only looks into remotes for newer versions and does not take into account the local cache. Would it be possible to add this as an optional functionality ?

@lukasberbuer
Copy link
Owner

Hi @h4haase, this makes sense and can be easily added I guess.
Internally conan search -r all <package> (conan v1) or conan search <package> (conan v2) is used. What would be the equivalent search command to also search the local caches?

@h4haase
Copy link
Author

h4haase commented Jul 9, 2024

Thanks for considering this. For conan v1 it would be just conan search <package>, not sure what that would be for conan v2.

As I understand the conan v2 documentation the correct command would be conan list <query>, even for searching in remotes (conan search just seems to be an alias for conan list <query> -r=*)

Also I think it is not possible to search remotes and local cache at the same time, so two calls to conan would be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants