-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Run::Clean #7
Comments
Currently Dist::Zilla doesn't enable plugins on What is it exactly that you are trying to achieve? If you are generating the file into your repo so that it gets included in your (built) dist Another option would be to use If you want the file to remain in your repo but don't want to commit it you could simply add it to your There are likely other options too, depending on what it is your aiming for. Feel free to drop by |
Which isn't to say that we couldn't petition for Dist::Zilla to support a |
Thanks for the detailed response. Heres what I'm doing: I am using a web based API. This API is available in a number of languages, which is defined in an XML file. The languages are unlikely to change very often, so at BeforeBuild I run a perl script that gets the Languages.xml, parses it into a perl hash, and use It's probably overkill, but it works nicely (and was interesting to work on). I have added the generated file to my I also want to ensure my CI system is doing a clean build - but to get around this I just ensured it was doing a So, its not essential that I do it on clean, just would be nice for clean to clean up everything. But if its not easy, then its definitely not worth spending any time on. |
Definitely an interesting use case. I forwarded the feature request upstream: https://rt.cpan.org/Ticket/Display.html?id=75426 Thanks for the tip on I chose to commit my generated pm's since they are required by the rest of the dist and if the data actually changes it's usually a small diff... but to each his own :-) Thanks for sharing the idea! |
If your CI system is Hudson/Jenkins, it does the clean before a new build (or at least there is an option to tick for that). But the proper Dist::Zilla way would be to transform your script into a Dist::Zilla plugin similar to Dist::Zilla::Plugin::Manifest. You would put this plugin in |
Just briefly skimming over this issue - are you aware of Dist::Zilla::Plugin::Clean? |
Dist::Zilla::Plugin::Clean just calls the This feature request was specifically for getting |
I'd recommend patching dzil to allow more options on the 'clean' command. Alternatively, you can put your commands in [Run::AfterRelease] and [Run::AfterBuild]. closing, as we can't really do much in this dist with the current architecture. |
Thanks for this very useful plugin.
It would be great if we could also have
Dist::Zilla::Plugin::Run::Clean
. One of my scripts generates a new .pm file before we build, and I would like to remove it when we clean.The text was updated successfully, but these errors were encountered: