-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add conan.conanrc file to setup the conan user home #11675
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue to be closed described also that we wanted to recover the "storage" path (different from the cache). Right?
This made playing with Conan 2.0 so much easier! ❤️ Now I just keep $ conan config home
Current Conan home: /Users/christopherm/.conan2 👏 |
@prince-chrismc To make things clear, |
It does,
|
Amazing, thanks for this! This will make working in multiple repositories with different, conflicting hooks a dream. Also, monorepo ❤️ |
Closes: #11542
You can create a .conanrc file in the folder where you are running conan (or any parent folder), it can have this content:
Set the conan home to an absolute folder
Set the conan home to a relative folder inside the current folder
Set the conan home to a relative folder outside the current folder
Set the conan home to a path containing the
~
that will be expanded to the system's user homeThe .conanrc file is searched for in all parent folders so, if for example, in this structure:
And you are running from folder
project1
the parent folders are traversed recursively until a .conanrc is found in case it exists.