miyagawa / Dist-Milla

Opinionated and Unobtrusive distribution builder
Other
42 stars 12 forks source link

Option to avoid regenerate during build, and add regenerate command #49

Open Grinnz opened 5 years ago

Grinnz commented 5 years ago

I am opening this for discussion, as I'm not sure how people feel about it regarding back compat. The regenerate command by @kentfredric provides an alternative to munging metadata files on every build, which some consider intrusive, especially contributors who just want to test a build. Implementation would be straightforward: use CopyFilesFromRelease instead of CopyFilesFromBuild, order it in the correct place for AfterRelease, set the root ReadmeAnyFromPod phase to release, and then use Regenerate::AfterReleasers on those two plugins. milla regenerate should work automatically.

The question is mostly, is this operation desired, and would people want to change their workflow?

CC @tokuhirom and @skaji for coordination with Minilla.

Grinnz commented 5 years ago

I've employed this as an option for my Starter bundle, and mbtiny also works this way, for what it's worth.

skaji commented 5 years ago

especially contributors who just want to test a build.

Usually, contributors do not even need to install milla.

Grinnz commented 5 years ago

Agreed, but some contributors want to, or are making changes to the Milla process rather than the module.

Grinnz commented 5 years ago

I'd also note, my personal preference as the author is often to make changes and test things, and regenerate the meta files in a separate commit.