beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Undefined subroutine &Getopt::Long::GetOptionsFromString #576

Closed szabgab closed 7 years ago

szabgab commented 8 years ago

When I have Getopt::Long 2.35 installed (perl 5.8.8.) I get this test failure. After upgrading to Getopt::Long 2.47 it all went fine.

t/noenv.t .................... 1/5 
#   Failed test at t/noenv.t line 97.
#                   'Undefined subroutine &Getopt::Long::GetOptionsFromString called at /data/usr/local/src/.cpan/build/ack-2.14-nwXyph/blib/lib/App/Ack/ConfigLoader.pm line 593.'
#     doesn't match '(?-xism:--noenv found in (?:.*)[.]ackrc)'
# [
#   'Undefined subroutine &Getopt::Long::GetOptionsFromString called at /data/usr/local/src/.cpan/build/ack-2.14-nwXyph/blib/lib/App/Ack/ConfigLoader.pm line 593.'
# ]
# Looks like you failed 1 test of 5.
t/noenv.t .................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests 
oeuftete commented 8 years ago

Looks to have been fixed (but not yet released) in https://github.com/petdance/ack2/commit/9f6c3882c2088d261f00a7789134868c0b0e767f.

petdance commented 7 years ago

This will go out in 2.17_01.