conan icon indicating copy to clipboard operation
conan copied to clipboard

[question] How to use a predefined user/channel as "standard" for require()

Open cajus opened this issue 3 years ago • 17 comments

I've the scenario that we've a local conan package repository (mostly because of reducing traffic) which keeps the packages. These packages are based on conan-center packages, but may have small modifications/patches for certain architectures.

Let's say a conan recipe does a self.requires("libpng/1.6.37") somewhere, this fails, because conan-center is not there as a remote. CONAN_USERNAME and CONAN_CHANNEL are deprecated. There's some default_user and default_channel, but I can't get it running from outside the recipe. Looks like I don't understand how to use these :confused:

What do I need, to make it pick the package from a certain channel (i.e. @foo/stable) on conan create, without replacing all requires with a full qualified pkg/version@channel scheme? Or let it pick it's requirements from the same channel I'm running "create" for?

cajus avatar Jan 27 '22 07:01 cajus