thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

pinto init fails with perl 5.30.1 because pinto 0.14 Getopt::Long::Descriptive 0.093 has deprecated syntax #255

Open n-form opened 4 years ago

n-form commented 4 years ago

Using perl 5.30.1, then obtaining and installing pinto 0.14, running 'pinto init' fails with

Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/(?:[:=][\d\w+]+[%@]?({ <-- HERE \d,\d})?|[!+])$/ at /opt/mypinto/lib/perl5/Getopt/Long/Descriptive.pm line 68. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/ (% # leading '%' (-)? # left-align, rather than right (\d)? # (optional) minimum field width (?:.(\d))? # (optional) maximum field width ({ <-- HERE .*?})? # (optional) stuff inside (\S) # actual format character )/ at /opt/mypinto/lib/perl5/String/Format.pm line 77.

Manual inspection of Getopt::Long::Descriptive in pinto reveals it to be VERSION = '0.093' Currently on MetaCPAN it is version 0.104 released Apr 27, 2019.

I speculate the solution is to update Pinto to use a the more recent version of Getopt::Long::Descriptive