pshangov has asked for the wisdom of the Perl Monks concerning the following question:


I have been trying for several days now to upload my first distribution on CPAN. I need some help dealing with the "The distribution contains the following world writable directories or files and is therefore considered a security breach and as such not being indexed" error message is from CPAN. I saw this issue has been discussed here before (, but I still cannot understand what I need to do to get "Build dist" to create a proper distribution.

I am using:
ActivePerl 5.10.0
Module::Build 0.30
Archive::Tar 1.42

When I upload my distro to CPAN I get an error that all my directories are world-writable.

Using Cygwin is not an option, and strawberry is currently not an option either.


  • Comment on Creating CPAN distribution on Win32 with Module::Build

Replies are listed 'Best First'.
Re: Creating CPAN distribution on Win32 with Module::Build
by mje (Curate) on Dec 16, 2008 at 13:03 UTC
Re: Creating CPAN distribution on Win32 with Module::Build
by jplindstrom (Monsignor) on Dec 16, 2008 at 13:45 UTC
    There is a fixed bug for Module::Build.

    There is no release yet it seems (I'd consider that a very high priority given the effect it has on all Windows developers, and the difficulty of figuring out what's the cause of the problem, let alone how to fix it).

    But if you apply this change int he meantime things might work (haven't tested it, I hacked it in a different way).


      Thanks, that did it.
      There is no release yet...

      There is no official release yet. A development version is available:

      cpan> install EWILHELM/Module-Build-0.30_02.tar.gz

      0.30_02 is a release candidate so the next official release with this bug fix should be out very soon.


      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.