Skip Menu |

This queue is for tickets about the Git-Sub CPAN distribution.

Report information
The Basics
Id: 118898
Status: resolved
Priority: 0/
Queue: Git-Sub

People
Owner: Nobody in particular
Requestors: book [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.163320



Subject: Git::Sub issue with Perl 5.8.9
Git::Database::Backend::Git::Sub uses Git::Sub to access the Git object database. It's test matrix is all green (yay!), except for one line: http://matrix.cpantesters.org/?dist=Git-Database%200.006;perl=5.8.9;reports=1 All of those FAIL show the same error: Unable to create sub named "git::cat_file" at /home/cpan/pit/bare/conf/perl-5.8.9/.cpanplus/5.8.9/build/F0SllIiKzn/Git-Sub-0.163130/blib/lib/Git/Sub.pm line 72, <DATA> chunk 1. Which leads me to think that Git::Sub has an issue with Perl 5.8.9.
I see that your code uses namespace::clean: https://github.com/book/Git-Database/blob/master/lib/Git/Database/Backend/Git/Sub.pm

Could it be a bad interaction of Git::Sub with namespace::clean as git::* subs are replaced on their first usage thanks to an AUTOLOAD ?

Could you try to wrap the Git::Sub import with "no namespace::clean" / "use namespace::clean"?


Le 2016-11-22 10:42:04, BOOK a écrit :
Show quoted text
> Git::Database::Backend::Git::Sub uses Git::Sub to access the Git
> object database.
> It's test matrix is all green (yay!), except for one line:
> http://matrix.cpantesters.org/?dist=Git-
> Database%200.006;perl=5.8.9;reports=1
>
> All of those FAIL show the same error:
>
> Unable to create sub named "git::cat_file" at
> /home/cpan/pit/bare/conf/perl-
> 5.8.9/.cpanplus/5.8.9/build/F0SllIiKzn/Git-Sub-
> 0.163130/blib/lib/Git/Sub.pm line 72, <DATA> chunk 1.
>
> Which leads me to think that Git::Sub has an issue with Perl 5.8.9.


-- 
Olivier Mengué - http://perlresume.org/DOLMEN
A fix by HAARG is now merged: https://github.com/dolmen-perl5/Git-Sub/pull/5

-- 
Olivier Mengué - http://perlresume.org/DOLMEN
Fix released 3 months ago in https://metacpan.org/release/DOLMEN/Git-Sub-0.163320

-- 
Olivier Mengué - http://perlresume.org/DOLMEN