in reply to fetching asset files from github during installation of module from CPAN

Don't do that.

Module installation from CPAN should not access the network, preferrably not even while testing the module. If you need outside resources either provide a separate script to fetch them or bundle the resources with your distribution.

If you want to automate the bundling of outside resources with your distribution, consider having that step in Makefile.PL and only execute it when the hostname is your release machine or when some appropriate environment variable is set.

  • Comment on Re: fetching asset files from github during installation of module from CPAN
  • Download Code

Replies are listed 'Best First'.
Re^2: fetching asset files from github during installation of module from CPAN
by tmaly (Monk) on Mar 16, 2016 at 15:58 UTC

    I was looking to do the update if possible when a stable version of the code is released. At this point the assets I am looking to fetch are in a state of flux.


    I agree it is probably better to just bundle a stable version and not try to update on installation.


    When a new stable version is released, update the module on CPAN with the latest version.