Skip Menu |

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

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

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

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



Subject: ConfigSlicer can't append multiple values to a config
I just tried to do this: [@Author::ETHER] AutoPrereqs.skip[] = ^Foo AutoPrereqs.skip[] = ^Bar$ And got this error: multiple values given for property AutoPrereqs.skip[] in section @Author::ETHER at /Users/ether/.perlbrew/libs/19.1@std/lib/perl5/Config/MVP/Assembler.pm line 98. Since mvp_multivalue_args needs to contain all the possible multivalue config names, we can interrogate all their plugins for these and return the whole list. (patch probably coming up, after I get this working directly in my pluginbundle.)
It was designed to be used with indexes: [@Author::ETHER] AutoPrereqs.skip[0] = ^Foo AutoPrereqs.skip[1] = ^Bar$ ( https://metacpan.org/module/Config::MVP::Slicer#CONFIGURATION-SYNTAX ) but i suppose if you can create a patch that makes that unnecessary (which would probably be for Config::MVP::Slicer) that would be a handy feature.
cjm tells me I just need to change [] to [0] and [1]. thanks cjm!! (but a doc patch might be useful still. expect one.) :)