Remote conan repository in Artifactory C++ edition does not find some packages that are in the referenced repository

  artifactory, c++, conan

I’m using Artifactory Community edition for C++ with the intention of caching some repositories, such as conan-center, as well as having a local repository for my own conan recipes.

Currently I have configured 3 remote repositories as in the image below
enter image description here

After that I created a virtual repository that includes all 3 remote repositories as well as a local repository (currently without any package).

After configure the conan client to add my virtual repository I can run conan search as below

conan search hdf5 -r=all

This results in

Remote 'conan-center':
hdf5/1.8.21
hdf5/1.10.5
hdf5/1.10.6
hdf5/1.12.0
Remote 'artifactory':
hdf5/1.8.21
hdf5/1.10.5
hdf5/1.10.6
hdf5/1.12.0

which is expected, since artifactory is including the remote repository for conan-center.

However, some packages seem to not be found in the artifactory virtual remote, while they are found in conan-center. For instance, the command

conan search hdf5 -r=all

results in

Remote 'conan-center':
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/5.3.0
fmt/[email protected]/stable
fmt/6.0.0
fmt/[email protected]/stable
fmt/6.1.0
fmt/6.1.1
fmt/6.1.2
fmt/6.2.0
fmt/6.2.1
fmt/7.0.1
fmt/7.0.2
fmt/7.0.3
fmt/7.1.0
fmt/7.1.1
fmt/7.1.2
fmt/7.1.3
Remote 'artifactory':
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable
fmt/[email protected]/stable

At first I thought that maybe the remote functionality in artifactory didn’t work with packages without the "@user/channel" part, since the search found the versions with "@bincrafters/stable", but after testing with the HDF5 library, which does not have "@user/channel" it worked as I have shown before.

Is there something I’m missing?


Note: In the remote repository configuration in artifactory I’m using "conan-default" as both the "Repository Layout" and the "Remote Layout Mapping".

Source: Windows Questions C++

LEAVE A COMMENT