Remove legacy Conan recipe and update documentation#8712
Remove legacy Conan recipe and update documentation#8712jtdavis777 merged 4 commits intogoogle:masterfrom
Conversation
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
|
Hey @uilianries -- will removing this legacy recipe become a breaking change for anyone still using conan 1.x? Are there any potential workflows that might get disrupted if we remove this code? Does the current code even still work for those on 1.x? |
|
@jtdavis777 Hello!
Yes and no. The recipe kept here will no longer be available, but for those users still using Conan 1.x, they will be able to use the frozen recipe and package from Conan Center:
No, the folder
It builds with Conan 1.x, but has deprecated features and packages most of .pc and .cmake files, which may break users when consuming the very same produced by Conan generator. For instance, Conan is capable to generate both FindFlabuffers.cmake and flatbuffersConfig.cmake, using the information from the recipe and following the Conan profile used, it guarantees that what the consumer asked, will fit exactly with the information in those .cmake produced files (e.g Release/Debug, shared/static...) Conan 1.x has now been deprecated for more than 2 years by Conan 2.x. Only security patches are absorbed, but no new features or backports are included. Still, Conan has been helping as much as possible to move users toward 2.x. When I opened that PR to include this Conan recipe, the Conan project had no resource to keep a central repository with official recipes. Later, the Conan-Center-Index was created, and pre-built packages were stored in an Artifactory instance, making those packages publicly available. As a result, we no longer needed to push recipes directly to upstream projects and consume their CI to build/publish a package. Still, receiving reviews from the upstream on ConanCenterIndex is always welcome. Please let me know if I have clarified your points sufficiently. Regards! |
Description
Motivation
The current Conan recipe kept in Flatbuffers was added by me 7 years ago (1f03bec) and now is deprecated, as it only works with Conan 1.x (see https://blog.conan.io/2024/09/30/Conan-Center-will-stop-receiving-updates-for-Conan-1.html). As for many other projects, the recommendation is to consume the Conan recipe from the official Conan Center, so maintainers don't need to worry about keeping recipes in their repositories and need some expert to fix it from time to time.
The documentation also explains how to install Flabuffers using Conan:
By default, Conan will try to download from Conan Center, and the pattern
[*]means latest version available.