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

Reply via email to