Skip Menu |

This queue is for tickets about the Module-Release CPAN distribution.

Report information
The Basics
Id: 44056
Status: resolved
Priority: 0/
Queue: Module-Release

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

Bug Information
Severity: Normal
Broken in: 2.02
Fixed in: (no value)



Subject: Could not create object...
What has changed? What does this diagnostic try to tell me? Could not create object with Module::Release::ANDK: release_subclass is the same class! Don't do that! at /usr/local/bin/release line 321 ! at /usr/local/bin/release line 321 This happens to me with 2.02 under perl 5.10.0. It worked until recently but I have no overview which perls and which Module::Release versions were involved. Let me know if you need further information. My subclass ANDK.pm is very simple, I can reproduce it full length: use strict; use warnings; package Module::Release::ANDK; use Module::Release; use base "Module::Release"; our $VERSION = "0.001"; no strict "refs"; for my $method (qw( build_makefile check_cvs clean cvs_tag dist make_cvs_tag test )) { *$method = sub { return; }; } 1; Any help appreciated. Thanks,
On Thu Mar 12 02:57:16 2009, ANDK wrote: Show quoted text
> What has changed? What does this diagnostic try to tell me?
release_subclass is deprecated. If you don't like what most of release does, you should write a new script rather than subclass anything. I never meant for people to rely on my script. I figured they'd write their own. Show quoted text
> Could not create object with Module::Release::ANDK: release_subclass > is the same class! Don't do that! at /usr/local/bin/release line 321 > ! at /usr/local/bin/release line 321
What does your .releaserc look like? The diagnostic is saying that the object the script created is made by the same subclass you specified in the config file (or the default). That's usually an error. But, it's a deprecated feature, so don't use it anymore. :)