Skip to content
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

[bug] .conanrc in root of windows drive is not detected #16430

Closed
peakschris opened this issue Jun 7, 2024 · 3 comments
Closed

[bug] .conanrc in root of windows drive is not detected #16430

peakschris opened this issue Jun 7, 2024 · 3 comments
Assignees

Comments

@peakschris
Copy link

Describe the bug

Windows, conan 2.4.0

I placed a .conanrc file with conan_home=d:\workdir\conan in the root of my d: drive, and then ran conan profile detect in d:\workdir\project. The .conanrc file was not detected and profile is written to default location.

Moving .conanrc to d:\workdir, it is detected

How to reproduce it

No response

@memsharded memsharded self-assigned this Jun 7, 2024
@memsharded
Copy link
Member

Hi @peakschris

Thanks for reporting.

So far, this was intentional. The .conanrc is intended to be a per-project mechanism, so setting it in the root directory would make it global configuration, and that can be configured at the system level (via CONAN_HOME env-var, for example). Why do you want to put the .conanrc in the root folder, can you please elaborate a bit more?

@peakschris
Copy link
Author

I'm happy with that restriction (perhaps it could be documented if not already)?

I was trying to put it in the root of my drive because I would like a global config for a user without use of envvars. The reason is explained here: #16431. If that feature was supported, I would not be trying to place it in the drive root.

@memsharded
Copy link
Member

I think this ticket was closed in Conan 2.5 in PR #16514.
Closing the ticket, but please let us know, create new tickets or re-open if this is not the case. Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants