perldependenciesdist-zilla

Are optional dependencies with Dist::Zilla possible?


I want to make some of my dependencies detected by Dist::Zilla optional. How could I go about doing this?


Solution

  • The Dist::Zilla::Plugin::Prereqs documentation says you can define them as:

    [Prereqs / RuntimeRecommends]
    Some::Optional::Module = 0
    

    Though though apparently it's not supported by the common clients (or at least wasn't last summer).