conan-io / conan-center-index

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

[Doc] Explain how a user profile should be written in order to be robust to conan v1 & v2 recipes #14781

Open SpaceIm opened 1 year ago

SpaceIm commented 1 year ago

conan-center documentation doesn't explain how user profiles should be written so that they can consume both conan recipes still reyling on legacy helpers & recipes migrated to conan v2 build helpers. Indeed, conan client doesn't provide backward & forward compatibility of all profile parameters (due to design choices, risk of breakage, maintenance cost, or whatever), so users must be aware of these limitations and how avoid breakage.

I think documentation should show:

prince-chrismc commented 1 year ago

This would a great addition

Should this be in the regular docs? https://docs.conan.io/en/latest/conan_v2.html maybe?

SpaceIm commented 1 year ago

Maybe in regular docs of conan v1 client. Maybe conan v1 docs should even completely change its Getting Started to rely on new generators to avoid confusion and already point new comers to modern conan.

SpaceIm commented 1 year ago

@memsharded what do you think? Should it be documented in conan v1 doc? I'm really wondering what is user experience of conan beginner currently with all this mixture of conan v1 & v2 recipes in conan-center, assuming they follow the Getting Started of conan v1 doc.

memsharded commented 1 year ago

I think this is great, and should be definitely part of the Conan 1.X docs, at least in the migration guide.