Skip Menu |

This queue is for tickets about the Dist-Zilla-Config-Slicer CPAN distribution.

Report information
The Basics
Id: 104230
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Config-Slicer

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

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



Subject: Allow multiple array append values
Currently this is forbidden:

    [@MyBundle] ; bundle that uses Dist::Zilla::Role::PluginBundle::Config::Slicer
    GatherDir.exclude_filename[] = tags
    GatherDir.exclude_filename[] = dist.ini

The error:
multiple values given for property GatherDir.exclude_filename[] in section @MyBundle at ...


Instead, multiple values should be allowed for array append (/.*\[\]$/).


-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
Unfortunately this is a limitation in Config::MVP::Parser (the base class that parses the ini file). It requires that array attributes be specified ahead of time as a class method. I have clarified the syntax example in the pod and linked to the "configuration syntax" section of Config::MVP::Slicer to provide additional details. This documentation change will be released shortly.