conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
945 stars 1.72k forks source link

[question] Mirroring conan-center with an Artifactory repo #3344

Open petermbauer opened 3 years ago

petermbauer commented 3 years ago

Due to company policies we can not directly access the conan-center and need to archive the packages that were used so we would like to mirror it with our Artifactory instance. Now the IT department tried to configure such a remote repo but it only works with revisions enabled:

$ conan search -r my-conan-center doxygen ERROR: The remote at 'https://artifactory.mydomain.com/artifactory/api/conan/conan-conan-center' only works with revisions enabled. Set CONAN_REVISIONS_ENABLED=1 or set 'general.revisions_enabled = 1' at the 'conan.conf'. [Remote: my-conan-center]

$ CONAN_REVISIONS_ENABLED=1 conan search -r my-conan-center doxygen Existing package recipes:

doxygen/1.8.17 doxygen/1.8.18 doxygen/1.8.20

As it works with the official conan-center and we would like to avoid enabling the revisions, the question is what went wrong here?

thx, Peter

intelligide commented 3 years ago

Your artifactory repo only works with revisions enabled. I never used artifactory but there may be some settings to disable this feature (search for "revisions" and "conan api v2").

petermbauer commented 3 years ago

I searched again and found this comment: https://github.com/conan-io/conan/issues/5182#issuecomment-493993183 So it seems this is impossible.

prince-chrismc commented 3 years ago

C3i publishes everything required for revisions, so the limitation by Artifactory will not (negatively affect) you.

After leveraging conan-center-index, we discovered heavily utilizing revisions was an absolute must for stability.

(fellow enterprise consumer)