Skip to content

[bug] .conanrc file is searched for wrt to the cwd instead of the recipe dir #3190

Open
@rconde01

Description

@rconde01

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions