conan-io / conan-center-index

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

[conan.io/center] Be able to have build profile in a seperate location to CONAN_HOME #19477

Open bruno-j-nicoletti opened 1 year ago

bruno-j-nicoletti commented 1 year ago

What is your problem/feature request?

I'd like to be able to have my conan profiles check into git. Currently they sit under CONAN_HOME, where all the conan artifacts also get placed. This means that CONAN_HOME, and all downloaded or built artifacts, currently sit under my git repo (but not checked in!). This is inconvenient as each clean checkout (eg: on a build machine) needs to pull down and/or build the artifacts each time. Separating where profiles are kept from where artifacts are placed would useful. I suggest CONAN_PROFILE_HOME for the location of profiles, which defaults to CONAN_HOME if not set.

EDIT: Ignore this feature request, as you can specify file paths for profiles, not just names. However, could the documentation for conan install be updated to indicate that a profile and be a file path as well as a profile name.

samuel-emrys commented 12 months ago

You probably wanted to raise this in https://github.com/conan-io/conan rather than for the conan-center-index. Also, you should look at conan config install which allows you to version control segments of your home and install only what you need.