Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 100018
Status: rejected
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: bozziebear [...] hotmail.com
Cc:
AdminCc:

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



Subject: Missing Dependency - Clone
During upgrade to .07042 on two seemingly identical machines, one succeeded while the other failed during the invocations test: perl t/20invocations.t 1..62 ok 1 - 'hardcode' isa 'DBIx::Class::Schema' ok 2 - 'hardcode' isa 'DBIx::Class::ResultSet' ok 3 - 'hardcode' isa 'DBICTest::Schema::_hardcode::Foo' ok 4 - hardcode correct object ok 5 - hardcode object created ok 6 - No warnings during hardcode invocations ok 7 - 'normal' isa 'DBIx::Class::Schema' DBIx::Class::ResultSource::schema(): Unable to perform storage-dependent operations with a detached result source (source 'Bar' is not associated with a schema). You need to use $schema->thaw() or manually set $DBIx::Class::ResultSourceHandle::thaw_schema while thawing. at t/20invocations.t line 17 After some investigation and comparison of the two machines, I discovered that the CPAN module Clone was not present on the failed installation environment. Installing Clone fixed the above error and the installation succeeded. I believe Clone should be added to the dependency list.
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #100018] Missing Dependency - Clone
Date: Tue, 04 Nov 2014 13:52:16 +0100
To: bug-DBIx-Class-Schema-Loader [...] rt.cpan.org
From: ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker)
"Tom via RT" <bug-DBIx-Class-Schema-Loader@rt.cpan.org> writes: Show quoted text
> After some investigation and comparison of the two machines, I > discovered that the CPAN module Clone was not present on the failed > installation environment. Installing Clone fixed the above error and > the installation succeeded. I believe Clone should be added to the > dependency list.
DBIx::Class::Schema::Loader depends on Hash::Merge, which is the thing that uses Clone. It declares the dependency, so I'm not sure how you managed to install Hash::Merge without also pulling in Clone. On a tangent, looking at the source of Hash::Merge, it has a fallback to Storable::dclone(), which apparently behaves differently from Clone::clone(), but that should never invoked unless your installation is broken (Clone either missing or failing to load). In summary, I don't think this is a bug in Schema::Loader. -- "I use RMS as a guide in the same way that a boat captain would use a lighthouse. It's good to know where it is, but you generally don't want to find yourself in the same spot." - Tollef Fog Heen
Subject: Re: [rt.cpan.org #100018] Missing Dependency - Clone
Date: Tue, 4 Nov 2014 13:23:20 -0800
To: bug-DBIx-Class-Schema-Loader [...] rt.cpan.org
From: Bozzie Bear <bozziebear [...] hotmail.com>
On 11/4/2014 4:52 AM, (Dagfinn Ilmari Mannsåker) via RT wrote: Show quoted text
> DBIx::Class::Schema::Loader depends on Hash::Merge, which is the thing > that uses Clone. It declares the dependency, so I'm not sure how you > managed to install Hash::Merge without also pulling in Clone.
I'm not sure either -- sorry for wasting your time on a false alarm.
Marking as rejected.