-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fail to install a module when the same filename is present #217
Comments
For the meanwhile, you can try
|
Related to miyagawa/cpanminus#564 |
Ah, thanks for the example! I did try
Thanks for the reference as well! I did not realize |
If the |
Right, confirmed. Looks like I just got "lucky" with |
cpm
fails when trying to install a module with a name matching a file name (or directory name) in the current directory:and the
build.log
complains about:This for example happens when a project has both a
lib
directory and thelib
module as a dependency, then trying to use e.g.dzil listdeps | cpm install -
to install all dependencies. In that casedzil
returnslib
as a dependency and it conflicts with thelib
directory.Before #161 and #216, core dependencies should have been filtered out in one way or another before passing the dependency list to
cpm
, so that masked this behavior at least for my use cases. I trieddzil listdeps --omit-core
andcpm install --target-perl
, but that didn't seem to help.I could also reproduce the same failure by trying to install any other module with a name that conflicts with a directory or file name in the current directory.
It looks like a real bug, but I wonder if I might have missed some of the available options that might help here? 🤔
The text was updated successfully, but these errors were encountered: