develooper Front page | perl.module-authors | Postings from November 2018

Re: Perl 5.26 and the . in INC issue where modules won't install

Thread Previous | Thread Next
From:
Martin J. Evans
Date:
November 2, 2018 08:51
Subject:
Re: Perl 5.26 and the . in INC issue where modules won't install
Message ID:
4903c2f7-35ce-5340-c16b-6fe6e656b80b@easysoft.com
On 01/11/2018 23:39, Alex Muntada wrote:
> Hi Karen,
>
>> You can also install locally patched modules with carton by
>> specifying a 'file:///' path in cpanfile:
>>
>>      requires 'Foo::Bar', '0.123', url =>
>> 'file:///local/path/Foo-Bar-0.123.tar.gz';
> I tried this with latest Carton (v1.0.28) and it didn't work.
> Since I couldn't find any reference to an url attribute in
> Module::CPANfile, I'm wondering whether I'm missing something
> because this looks like a very nice feature.
>
> Can you provide some details or pointers on how it works?
>
> Thanks!
> Alex
>
Yes, me too. Shame as it was just the solution I was looking for:

$ ls /home/martin/Downloads/ZMQ-FFI-1.11.tar.gz
/home/martin/Downloads/ZMQ-FFI-1.11.tar.gz

$ cat cpanfile

requires 'ZMQ::FFI', 'file:///home/martin/Downloads/ZMQ-FFI-1.11.tar.gz';

$ carton install
Installing modules using /home/martin/xxx/cpanfile
Can't convert 'file:///home/martin/Downloads/ZMQ-FFI-1.11.tar.gz': Invalid version format (non-numeric data)
Installing modules failed

Martin

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About