Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't my CPAN distribution indexed by PAUSE?

I've uploaded my stasis distribution to PAUSE, but it isn't in the index.

I thought this was because it didn't contain a package, so I added a package declaration to the stasis script in v0.04 like this:

#!/usr/bin/env perl
package stasis;
package main;
...

but it still wasn't indexed.

Is there anyway to get this distribution indexed that doesn't involve creating a boilerplate module file? (e.g. adding lib/stasis.pm to the distribution).

like image 687
David Farrell Avatar asked Oct 02 '16 20:10

David Farrell


1 Answers

I believe CPAN does not index scripts.

IMO your best option is to make a module that allows doing programmatically what your script does (and make the script use it).

You could put in a fake module or make it think your script is a module (I think listing it in provides works), but I wouldn't if I were you.

like image 172
ysth Avatar answered Sep 28 '22 07:09

ysth