-
Notifications
You must be signed in to change notification settings - Fork 46
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
KB-H057 - os.rename is not recommended #294
KB-H057 - os.rename is not recommended #294
Conversation
Signed-off-by: Uilian Ries <uilianries@gmail.com>
|
Right now this is probably the best approach to implement it... but in order to merge it and make it useful, we need to add some functionality to the library https://github.com/conan-io/c3i_jenkins/issues/758. Let's wait a little bit, see how we implement it in the library before merging this one, maybe we come up with some changes to improve it. |
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.
We will suggest user to use the new (to come) rename
function that will let us configure the usage of robocopy
: conan-io/conan#8897
We will update this PR once the functionality is ready to be used.
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Done, now the recommended way is |
|
@Croydon It's documented here: https://docs.conan.io/en/latest/reference/conanfile/tools/files.html#conan-tools-rename The feature issue is this one: conan-io/conan#8897 The |
I would add the full import chain to the error message: "... use |
@jgsogo This was my confusion as I looked in the wrong place in the documentation |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
We need Conan 1.37.0 in the CCI pipelines at least before merging this |
…re/enforce-tools-rename
1.37 is already in CCI, right? |
Yes, 1.37.2 is running on CCI right now! /cc @danimtb |
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.
Time to approve this one 🚀
The
os.rename
is no longer recommended, instead, usetools.rename
This PR adds this rule as warning, otherwise CCI will break heavily.
Related to #293