Skip to content
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

Plugin::Filter can't pass multivalued options to bundle [rt.cpan.org #81958] #695

Open
rjbs opened this issue Jul 3, 2021 · 0 comments
Open

Comments

@rjbs
Copy link
Owner

rjbs commented Jul 3, 2021

https://rt.cpan.org/Ticket/Display.html?id=81958

One can't pass duplicated options to the bundle, only allows '-remove' to be duplicated.  

mvp_multivalue_args issue?

For example: passing multiple "except" lines to PruneCruft filter on a modified @Basic bundle 
fails with an error.

  [@Filter]
  -bundle = @Basic
  -remove = MetaYAML
  except = secret_file_1.txt
  except = secret_philez

error:
multiple values given for property except in section @Filter at 
.../perl5/lib/perl5/Config/MVP/Assembler.pm line 98.

I doubt we want to load all the (non filtered) plugins in the bundle and combine their 
mvp_multivalue_args settings, so this may just need a documentation work around.  Is their 
an option other than removing the plugin from the bundle and then configuring it manually, 
ala:

  [@Filter]
  -bundle = @Basic
  -remove = MetaYAML
  -remove = PruneCruft
  [PruneCruft]
  except = secret_file_1.txt
  except = secret_philez

Thanks,
Andrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant