Your skill will accomplish
what the force of many cannot
Setting up and accessing a DarkPANby kcott (Archbishop)
|on May 07, 2020 at 06:39 UTC
kcott has asked for the wisdom of the Perl Monks concerning the following question:
I have a $work task to investigate ways of collecting our private Perl modules into something akin to CPAN. There were a number of potential solutions suggested; after investigating these, I've decided that a DarkPAN best suits our needs. The DarkPAN solution is the focus of this post.
I was already aware of search.cpan.org's end of life. During my research, I encounted other out-of-date elements; for instance, the API link, at the top of MetaCPAN pages, leads to a "YAPC video" which discusses MetaCPAN::API; however, that module's documentation is very clear (using large, bold, block capitals) that it is deprecated and indicates that MetaCPAN::Client should be used instead. There may other similar things of which I'm not aware: if anything that follows is considered outdated, deprecated or superceded, I'd appreciate feedback.
For the DarkPAN itself, I'm looking at CPAN::Dark (that's a GitHub link, I can't find it under MetaCPAN). I have some minimal experience with its dependent modules, CPAN::Mini and CPAN::Mini::Inject. Unless I hear otherwise, I think that should handle the setting up part: I'm not seeing any downside to this. I'm aware that tools such as the cpan utility will require configuration; again, this shouldn't present any problems.
To search and browse the DarkPAN, I've been looking at CPAN::Mini::Webserver. I'm not completely sold on this which may be due to a lack of documentation rather than a lack of functionality. This may require delving into the source code to find out how to do things. Any suggestions for alternatives would be appreciated.