Skip to content

Instantly share code, notes, and snippets.

@jonasbn
Created November 17, 2017 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonasbn/d6a14ea4f3a0621bcb7ce308ca628c6e to your computer and use it in GitHub Desktop.
Save jonasbn/d6a14ea4f3a0621bcb7ce308ca628c6e to your computer and use it in GitHub Desktop.
Example Error from Dist::Zilla
[DZ] attempt to add cpanfile multiple times; added by: filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 226); filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by GatherDir (Dist::Zilla::Plugin::GatherDir line 226)
@cjac
Copy link

cjac commented Apr 28, 2022

[DZ] attempt to add MANIFEST multiple times; added by: filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 226); encoded_content added by @Filter/GatherDir (Dist::Zilla::Plugin::GatherDir line 227); bytes from coderef added by @Filter/Manifest (Dist::Zilla::Plugin::Manifest line 55)

@cjac
Copy link

cjac commented Apr 28, 2022

I imagine that these two instances have the same solution...

@cjac
Copy link

cjac commented Apr 29, 2022

rm MANIFEST from your package should fix it

@jonasbn
Copy link
Author

jonasbn commented May 6, 2022

Thanks for the follow up.

It was solved like so (abbreviated):

[GatherDir]
; this plugin needs no config and gathers most of your files
exclude_filename = MANIFEST

REF: dist.ini for Crypt-OpenSSL-X509 on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment