Skip Menu |

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

Report information
The Basics
Id: 57198
Status: open
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: marcoep [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.3607
Fixed in: (no value)



Subject: Should "{dist.real}clean" targets also remove META.yml and MANIFEST?
Hi there, META.yml and MANIFEST files are supposed (by many people) to be generated when preparing a distribution -- i.e., they may be considered distribution artifacts. So I would expect that: 1) "distclean" removes META.yml since it's created by "./Build dist" 2) "realclean" removes both. Otherwise, I'd like to have a special target to do that. Cheers, Marco
Subject: Re: [rt.cpan.org #57198] Should "{dist.real}clean" targets also remove META.yml and MANIFEST?
Date: Tue, 4 May 2010 11:56:03 -0400
To: bug-Module-Build [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Tue, May 4, 2010 at 6:33 AM, Marco Emilio Poleggi via RT <bug-Module-Build@rt.cpan.org> wrote: Show quoted text
> META.yml and MANIFEST files are supposed (by many people) to be > generated when preparing a distribution -- i.e., they may be considered > distribution artifacts.  So I would expect that: > 1) "distclean" removes META.yml since it's created by "./Build dist" > 2) "realclean" removes both. > > Otherwise, I'd like to have a special target to do that.
You don't need a special target, you can just use $obj->add_to_cleanup(@files) in your Build.PL file before calling $obj->create_build_script(). -- David
From: marcoep [...] gmail.com
Le Mar 04 Mai 2010 11:56:38, DAGOLDEN a écrit : Show quoted text
> On Tue, May 4, 2010 at 6:33 AM, Marco Emilio Poleggi via RT > <bug-Module-Build@rt.cpan.org> wrote:
> > META.yml and MANIFEST files are supposed (by many people) to be > > generated when preparing a distribution -- i.e., they may be considered > > distribution artifacts.  So I would expect that: > > 1) "distclean" removes META.yml since it's created by "./Build dist" > > 2) "realclean" removes both. > > > > Otherwise, I'd like to have a special target to do that.
> > You don't need a special target, you can just use > $obj->add_to_cleanup(@files) in your Build.PL file before calling > $obj->create_build_script(). > > -- David
Thanks a lot, it works! I actually missed it in the documentation, oops. Cheers, ^m'e