[bug] .conanrc file is searched for wrt to the cwd instead of the recipe dir
Open
stage: triaging
- Dominant language
- C++
- Stars
- 125
- Forks
- 382
- Avg merge
- 22h 39m
- Merged PRs (30d)
- 21
Description
### Environment details
* Operating System+version: Windows 11
* Compiler+version: Visual Studio 2022
* Conan version: 2.0.4
* Python version: 3.11.0
### Steps to reproduce
1. Create a project with a consumer file (e.g. conanfile.txt)
2. Create a `.conanrc` file containing an alternate conan_home
3. Navigate to an unrelated directory
4. do a `conan install` on the recipe
5. The `.conanrc` file will not be found
Looking at the source I found it starts the search from the cwd rather than the recipe directory.
@prince-chrismc
### Logs
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.