conan-io / conan-package-tools

Conan Package Tools. Helps with massive package creation and CI integration (Travis CI, Appveyor...)
MIT License
165 stars 70 forks source link

Add an option to opt-in to 2.x client behaviour of always using 2 profiles #610

Closed Croydon closed 2 months ago

Croydon commented 1 year ago

Right now CPT uses only one profile by default.

There are the variables CONAN_BASE_PROFILE and CONAN_BASE_PROFILE_BUILD that allow to set two profiles, but this is error-prone when we just want to continue to use the automatic generated profiles since CPT / Conan seems to look into a different path for the profiles specified in those variables.

i.e. defining CONAN_BASE_PROFILE_BUILD=default does NOT allow to use the generated profile as build and host profile which is the goal. (e.g. /home/conan/.conan/profiles/default (generated) vs /home/runner/.conan/profiles/default (GitHub Actions inside a Docker container))

Croydon commented 2 months ago

https://github.com/conan-io/conan-package-tools/commit/decb63a1a470a5ffd5adf3ae6074b740f086aef2