Skip Menu |
 

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 3903
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: chris [...] clotho.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.20
Fixed in: (no value)



Subject: Modular distmeta action
Download (untitled) / with headers
text/plain 546b
My Module::Build subclass makes heavy use of META.yml, so I've chosen to make 'code' depend on 'distmeta'. The drawback is that META.yml is then built every time, whether a rebuild is needed or not. I would be thrilled if ACTION_distmeta were changed to be a thin wrapper that invokes a method named, perhaps, buildmeta() that checks the timestamps of the _build files to see if META.yml needs to be reconstructed. If yes (or if the 'distmeta' action is called explicitly?) then write a new META.yml. Otherwise move on. Module::Build rocks!
Download (untitled) / with headers
text/plain 259b
(revisiting this very old open ticket...) I think it might be better if your Module::Build subclass didn't read the META.yml file, and instead just used the M::B API to get the information it needs. The API is more full-featured than it used to be. -Ken
Download (untitled) / with headers
text/plain 590b
[KWILLIAMS - Sun May 30 11:16:30 2004]: Show quoted text
> (revisiting this very old open ticket...) > > I think it might be better if your Module::Build subclass didn't read > the META.yml file, and > instead just used the M::B API to get the information it needs. The > API is more full-featured > than it used to be. > > -Ken
You've misunderstood my request. I want to *write* META.yml at code-time, not to read it. My (very minor) complaint was that META.yml is not dependency-checked, but is simply built every time. But, I really don't care anymore, so feel free to leave this request closed.
Download (untitled) / with headers
text/plain 947b
[guest - Sun May 30 15:28:04 2004]: Show quoted text
> You've misunderstood my request. I want to *write* META.yml at > code-time, not to read it.
I knew that, but I figured that if you were writing it then, something else must be reading it soon thereafter. Show quoted text
> My (very minor) complaint was that META.yml > is not dependency-checked, but is simply built every time.
Yeah, that could be dealt with, but at the moment there's not a very well-defined set of prerequisites for the META.yml file - the 'version' & 'author' generally come from the module_name file, but don't always, and the various entries in 'provides' come from all the different pm_files entries. It could be done, but I'm not sure I trust myself to really get it right, and it would be a royal pain for someone if we get it wrong. I think it's probably safer to just rewrite it every time, since in the usual case this is only done once, when running the 'distdir' action. -Ken


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.