You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue that I've run into is that restructuring the structure of Conan profiles in a shared Conan configuration via Git can fail when switching a file to a directory of the same name or vice versa.
This pretty much fails without explanation, so the error message should probably be improved.
Perhaps it would be best to make this default behavior, which wouldn't require anything special to ensure scheduled runs of conan config install don't break. Otherwise, there could be an option like --force which would all overwriting any conflicting directories / files.
To reproduce this issue:
Create a git repository to share Conan configuration through conan config install.
@lasote Sorry, I probably should have filed this using the bug template. I'll update the issue to describe the exact steps to make this happen. I don't think this is quite a corner case, though, as I think this could reasonably happen under normal usage of the conan config install command, especially as things are better organized as they grow and evolve over time.
A fix will be released in 1.43.
It will remove the previous file if a directory is going to be copied and it will remove the directory if now a file is going to be copied.
An issue that I've run into is that restructuring the structure of Conan profiles in a shared Conan configuration via Git can fail when switching a file to a directory of the same name or vice versa.
This pretty much fails without explanation, so the error message should probably be improved.
Perhaps it would be best to make this default behavior, which wouldn't require anything special to ensure scheduled runs of
conan config install
don't break. Otherwise, there could be an option like--force
which would all overwriting any conflicting directories / files.To reproduce this issue:
conan config install
.conan config install
.conan-config
repository.conan config install
to update the profiles.Note the vague error message.
The text was updated successfully, but these errors were encountered: