How to look like an idiot with Dist::Zilla

Several people who watch CPAN recent upload feeds may have noticed an interesting sounding tarball by yours truly: Foo-1.23.

Here's the story: I'm a recent convert to Dist::Zilla. I really like it -- if I had more time I'd write a longer post about how easy it makes your life as a developer.

The problem is that it can make it too easy. I was writing a Dist::Zilla plugin to check "xt" tests before release. Unfortunately, the @Classic plugin that I added to a test includes the UploadToCPAN plugin -- which, if you have a .pause file with your credentials, will helpfully upload modules straight to CPAN.

You can probably see where this is going. Yes, I ran my tests and promptly uploaded a test distribution called "Foo-1.23" to CPAN. Thankfully, the "Foo" namespace is already claimed, so it's an unauthorized distribution and doesn't get indexed. I've already scheduled it for deletion, so hopefully, by the time you read this, it will just be a bad memory.

But, my mistake aside, Dist::Zilla rocks. If you develop for CPAN, you should really give it a try.

Just be very careful when you type 'dzil release'.

This entry was posted in cpan, dzil, perl programming, toolchain and tagged , . Bookmark the permalink. Both comments and trackbacks are currently closed.

One Comment

  1. Posted March 31, 2010 at 9:24 pm | Permalink

    ...and shortly after this faux pas, David wrote ConfirmRelease, which prompts you with, "Uh, do you really want to upload this to the CPAN?" It's now part of the Classic configuration.

    Of course, I disabled it for myself...

© 2009-2014 David Golden All Rights Reserved