[Dbix-class] Re: [rt.cpan.org #35266] installs failed

Christopher H. Laco claco at chrislaco.com
Wed Apr 23 13:50:34 BST 2008


Matt S Trout wrote:
> On Tue, Apr 22, 2008 at 09:33:02AM -0400, Christopher H. Laco wrote:
>> Matt S Trout wrote:
>> [snip]
>>
>>> This -is- your bug.
>>>
>>> the DBIx::Class tests themselves run fine without SQL::Translator becau=
se
>> Good for your tests. My tests however, use DBIx::Class deploy, as =

>> documented as public API, and it blows up on a version issue not listed =

>> in prereq.
>>
>>> they provide a DDL file; deploy() only needs SQLT on the *build* side to
>>> generate that file originally, which is why it's not marked as a depend=
ency
>>> on the DBIx::Class dist itself.
>>>
>>> Please fix UUIDColumns' tests.
>>>
>> I do NOT use SQL::Translator directly. I make sure it is loaded, =

>> fulfilling the requirements in the deploy POD. DBIx::Class requires a =

>> specific version or it dies...a version not listed as a prereq [or in =

>> the pod]. Please fix your code, update your pod, or make it a prereq.
> =

> It's not a prereq for basic operation, only for build-side usage of
> deploy.
> =

> We don't make every DBD::* a prereq either.
> =

> The correct way to use deploy here is the way DBIx::Class' tests use it
> - use SQL::Translator on the author side to generate a DDL file and make
> sure your tests can find that DDL file.
> =

> You're right that the deploy POD should be updated to reflect this, but
> the -code- needing fixing is still the UUIDColumns tests.
> =


Cleaned up the easy way. Removed the use of deploy altogether in the =

tests in UUIDColumns, Validation and InflateColumn::Currency. No biggie =

for those since their test schema is a one off sql file for tests.

For things like Handel/Mango, I'll just have to do it properly since the =

test schema is the codebase schema.

-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080423/d9=
968c80/signature.pgp


More information about the DBIx-Class mailing list