Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Prepender CPAN distribution.

Report information
The Basics
Id: 99808
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-Prepender

People
Owner: ether [...] cpan.org
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.002



Subject: forces the content to evaluate on every file, prematurely
There are some files that are added to the distribution as 'FromCode' files, where the actual content of the file isn't known until some later time. It's important to not attempt to read its contents until it's actually needed, so that code isn't run too soon. [Prepender] opens up the contents of *every single file* in the dist when it runs. It should take a filefinder argument as an option (i.e. compose the FileFinderUser role), so it is at least possible to shield some files from being modified prematurely.
On 2014-10-26 00:07:07, ETHER wrote: Show quoted text
> There are some files that are added to the distribution as 'FromCode' > files, where the actual content of the file isn't known until some > later time. It's important to not attempt to read its contents until > it's actually needed, so that code isn't run too soon. > > [Prepender] opens up the contents of *every single file* in the dist > when it runs. It should take a filefinder argument as an option (i.e. > compose the FileFinderUser role), so it is at least possible to shield > some files from being modified prematurely.
I have prepared a patch at https://github.com/jquelin/dist-zilla-plugin-prepender/pull/3