lukasberbuer / conan-check-updates

Check for updates of your conanfile.txt/conanfile.py requirements
MIT License
2 stars 2 forks source link

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

Open h4haase opened 3 months ago

h4haase commented 3 months ago

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 commented 2 months ago

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 commented 2 months ago

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.