Почему panda не может установить мой модуль, когда все тесты проходят локально?
Я являюсь автором Pod-Perl5 модуля Perl 6, который анализирует модуль Perl 5. До выпуска Perl 6.c этот модуль устанавливался нормально с panda install Pod::Perl5
, Теперь это терпит неудачу с обширным списком ошибок (выдержка ниже, полный вывод здесь). Все тесты проходят при запуске набора тестов с: prove --exec perl6 -r
Я спросил на IRC #perl6
канал, и попробовал тактику "все ядерное, переустановить". Это не сработало. Может ли кто-нибудь еще помочь?
$ panda install Pod::Perl5
==> Fetching Pod::Perl5
==> Building Pod::Perl5
==> Testing Pod::Perl5
# Failed test 'found 8 paragraphs'
# at t/Grammar/01_formatting.t line 11
# expected: '8'
# got: '1'
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 13
# Failed test 'match format text'
# at t/Grammar/01_formatting.t line 13
# expected: 'this text is an example of inline italicised/emphasised'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 17
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 17
# expected: 'this text is italicised/emphasised
# across
# newlines'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 21
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 21
# expected: 'italicised words'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 25
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 25
# expected: 'italicised
# words'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 29
# Failed test 'matches format text'
# at t/Grammar/01_formatting.t line 29
# expected: 'bolded B<words> within italics!'
# got: ''
Use of uninitialized value $v of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if needed. in block <unit> at t/Grammar/01_formatting.t line 33
...
2 ответа
Панда призывает доказать следующее:
$prove-command, '-e', "$*EXECUTABLE $libs -Ilib", "--norc", '-r', 't/'
в переводе на bash это будет:
prove -e "perl6 -Ilib" --norc -r t/
что приводит к тому же результату, что и вы.
Пожалуйста, отправьте отчет об ошибке на https://github.com/tadzik/panda/issues с информацией, предоставленной выше.
Изменения use lib 'lib';
в use lib '../lib';
для тестов в подкаталогах помогает. Я не совсем уверен, если это должно.