Subject: | Incorrect directory restructuring under certain conditions |
Date: | Fri, 9 Aug 2013 19:08:49 -0500 |
To: | bug-Module-Rename [...] rt.cpan.org |
From: | Jim Cochrane <jim.cochrane [...] gmail.com> |
This is a formal report of the bug I reported earlier in the context of
another bug:
https://rt.cpan.org/Public/Bug/Display.html?id=87172
The bug causes the wrong directory hierarchy to be created in some cases.
For example, I have a test case that, from the commands:
module-rename -g NowOrLater::Core::TaskState
NowOrLater::Core::Tasks::TaskState lib/
module-rename -g NowOrLater::Core::Task NowOrLater::Core::Tasks::Task lib/
transforms this hierarchy:
lib/NowOrLater/Core/TaskState.pm lib/NowOrLater/Core/Task.pm
lib/NowOrLater.pm
into this incorrect one:
lib/NowOrLater/Core/Tasks/Task.pm
lib/NowOrLater/Core/Tasks/Tasks/TaskState.pm
lib/NowOrLater.pm
(.../Tasks/Tasks/TaskState.pm is wrong.) The correct hierarchy is:
lib/NowOrLater/Core/Tasks/TaskState.pm lib/NowOrLater/Core/Tasks/Task.pm
lib/NowOrLater.pm
More info about this bug can be found in the thread for bug
87172 - e.g.:
https://rt.cpan.org/Public/Bug/Display.html?id=87172#txn-1243696