Subject: | DBIx::Class::Core::VERSION |
Date: | Wed, 12 Feb 2014 10:01:56 +0000 |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | Gil Gamesh <gamesh.g [...] gmail.com> |
Hi,
My system: GNU/Linux i686 3.11.0-15-generic Kubuntu 13.10
My Perl: v5.16.2 using perlbrew
After a recent cpanp update, when I start a Catalyst application I see this
error:
Couldn't instantiate component "ETSEA::Model::DB", "{UNKNOWN}:
DBIx::Class::Core does not define $DBIx::Class::Core::VERSION--version
check failed at
/opt/perl5/perls/perl-5.16.2/lib/site_perl/5.16.2/Module/Runtime.pm line
386.
Compilation failed in require at
/opt/perl5/perls/perl-5.16.2/lib/site_perl/5.16.2/Class/C3/Componentised.pm
line 150. at
/opt/perl5/perls/perl-5.16.2/lib/site_perl/5.16.2/Class/C3/Componentised.pm
line 155
Compilation failed in require at
/opt/perl5/perls/perl-5.16.2/lib/site_perl/5.16.2/Catalyst/Restarter/Forking.pm
line 20.
The error goes away when I copy the following code from DBIx/Class.pm to
DBIx/Class/Core.pm
our $VERSION;
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
# brain damage and presumably various other packaging systems too
# $VERSION declaration must stay up here, ahead of any other package
# declarations, as to not confuse various modules attempting to determine
# this ones version, whether that be s.c.o. or Module::Metadata, etc
$VERSION = '0.08270';
$VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev
releases
But maybe this is a bug in Module::Runtime rather than DBIx? If so I'll
open a report there.
Thanks.