Hi Tim,
On Tue, 1 May 2018, Tim Cox wrote:
> So if the installer has write access it will install these modules?
No, but that write access would be a prerequisite to make CPAN useful.
Without write access, users cannot do much with it (you cannot update the
CPAN module using itself, for example).
That means that we would have to ship it, and worse: you would dictate to
the Git for Windows maintainer that he has to maintain this piece, too,
despite the fact that it has preciously little to do with Git, for
preciously little benefit to users other than yourself.
> I ask this because on some PC installations they (these modules) are
> there.
Probably by mistake, given my earlier explanation?
> Why would one installation be different than the other in this respect?
Because bugs happen?
> Can write permissions on C:\Program Files prevent some modules from
> installing and others not? I would expect from one machine to the next
> if the installer selects the exact same options they would get the exact
> same files installed.
Write permissions on C:\Program Files prevent all modules from installing
stuff. The point of CPAN is pretty much exclusively to install stuff.
Oh, and CPAN also has a dependency on the entire GCC toolchain because
some modules you may want to install must build native code.
So essentially, you are asking not for fries as a side, but for a Porsche
911.
> We are trying to find a way to trim our current in-house toolset that
> uses ActiveState perl by using the perl that ships with GIT (on
> windows). We don't want 2 copies of perl installed if we can avoid it.
Sure. Trimming your toolset makes sense.
In this case, it may be unavoidable to have two copies of Perl, as Perl is
not Perl is not Perl when every single Perl comes with a different set of
modules. In Git for Windows' case, we have to ship Perl with a certain set
of modules to support certain parts of Git that are implemented as Perl
scripts. That is literally the only reason Git ships with a copy of Perl,
and that is the only use case I am willing to maintain.
You could, of course, try to rip out Git for Windows' Perl and use your
ActiveState Perl instead. That should be possible (it used to be possible
at some stage, we have enough ActiveState-specific workaround to prove
that some contributors found that worthwhile). It would be your
responsibility to make that work, and to keep it working, of course.
Ciao,
Johannes