conan-vs-extension icon indicating copy to clipboard operation
conan-vs-extension copied to clipboard

Can we support list or search package from private conan-server

Open daiybh opened this issue 1 year ago • 3 comments
trafficstars

Can we support list or search package from private conan-server

today ,I found it only support from conan-center.

daiybh avatar May 13 '24 06:05 daiybh

Agree. We need that features.

icegull avatar May 13 '24 06:05 icegull

Hi @daiybh, @icegull,

Thanks a lot for the question. We have no plans to implement this for the moment as it would add an extra complexity for the plugin. Right now, the list of Conan packages comes from a hardcoded json that's updated daily to reflect the updates in Conan Center (if you click the 🔄 button it will be updated) but there's no option to show the contents of a custom repo. You can edit the conandata.yml that the extension generates (dont forget to remove the comments, otherwise the extension overwrites the contents) and there you can specify your own packages, that will be fetched by order of preference that you have configured in the same way that any regular conan install works. I think the easiest way of making sure that you fetch the requirements from your custom repository putting your remote first in the list of remotes (you can do that with conan remote update if you already have the remote configured) or even removing or disabling all remotes but the one you want.

Hope this helps.

czoido avatar May 20 '24 08:05 czoido

Related to https://github.com/conan-io/conan-vs-extension/issues/224

czoido avatar May 20 '24 08:05 czoido