Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 50428
Status: resolved
Worked: 30 min
Priority: 0/
Queue: CPANPLUS

People
Owner: BINGOS [...] cpan.org
Requestors: rkrimen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.88
Fixed in: (no value)



Subject: Strange behavior on cpanp -i --verbose ...
When the --verbose flag is given to cpanp (with -i), it shows that CPANPLUS will "pick up" a Makefile.PL that is in the current directory and try to install it # mkdir t # cd t # touch Makefile.PL # cpanp -i Xyzzy ^ This will generate a normal error about Xyzzy not existing # cpanp -i --verbose Xyzzy ^ [ERROR] Unable to create a new distribution object for 't' -- cannot continue This could be CPANPLUS's normal mode of operation, and verbose just shows it, but it seems weird to try and install/test whatever is in cwd
Hi, Thanks for the ticket. The support for installing from arbitary filesystem paths was a recent addition, so one can do 'cpanp -i .' for instance to install from the current working directory. doing 'cpanp -i --verbose Xyzzy' actually means 'install "" and Xyzzy' because the verbose modifier should follow the command. 'cpanp -i Xyzzy --verbose' for instance doesn't not exhibit the same behaviour. I've added an additional check to CPANPLUS::Backend::parse_module() so that it checks if what has been given for *truth* before doing a call to File::Spec->rel2abs(), because it appears File::Spec->rel2abs("") gives the current working directory. Thanks for reporting this edge-case. It is fixed in the svn repository so future releases will have it.