Re: Perl 5.26 and the . in INC issue where modules won't install
[email protected] ("Martin J. Evans") Fri, 2 Nov 2018 08:51:44 +0000
| Newsgroups | perl.module-authors |
|---|---|
| Message-ID | <[email protected]> |
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