[Edinburgh-pm] CPAN upload

Nick oinksocket at letterboxes.org
Wed Dec 21 03:26:43 PST 2011


On 20/12/11 20:31, Miles Gould wrote:
> I've just made my first-ever upload to the CPAN (woo! yeah!) in the
> form of a bugfix release for List::Priority. You can see it at

Congrats.  What do you use it for?

> Now, I realise belatedly that I screwed up, and that developer
> releases are meant to contain underscores rather than "rc". Will I get
> feedback from cpantesters anyway, or should I re-upload?

I'd have suspected it'll screw up some check or assumption somewhere, but that
PAUSE should email you to says so...

However, as you say, there it is, on CPAN.  I'm a bit surprised.

On the other hand, I expect the version will break various other things
downstream in undefined ways, however, not least dependency checking in modules
using yours.

Your plan looks sane, btw.  Although your API-breaking release should bump the
major version number shouldn't it?

Returning integer ids instead of strings, with the integers being mapped to a
more people-friendly string via a function might be saner, unless you want 'true
is success' semantics, in which case the ice gets thinner.    Croaking is more
normal and may be a better idea - although Perl's default exceptions and the the
existence of a gazillion alternatives are one of my least favourite parts of it.

I might suggest using some sort of release helper.  Module::Release is what I
currently use, because it's simple to use, however I have been attempting to fix
it so that it correctly parses PBP-recommended three digit versions.  (Currently
it assumes traditional Perl integer versions and does the Wrong Thing if they
aren't - certainly yours would fail to parse.)

The cool kids seem to use Dist::Zilla, which looks interesting, although expect
to install the kitchen sink and one or two large herbivores first.  local::lib
(and App::PerlLocalEnv/cpaninus) will probably help out if you decide to go
there - there's a gazillion plug-ins and it seems to be one of those fast-moving
targets distros can't keep up with.

N


More information about the Edinburgh-pm mailing list