Web lists-archives.com

Re: git-email missing module




On 8/4/2018 10:11 AM, john doe wrote:
Hi,

On a fresh install of Cygwin_x86_64, I have installed "git,git-email" packages and I'm getting the following:

$ git send-email master --confirm=always --to=xxx@xxxxxxxxxxx
BUG: The 'Mail::Address' module is not here, but NO_PERL_CPAN_FALLBACKS was set!

I don't get this error.

Git needs this Perl module from the CPAN, and will by default ship
with a copy of it. This Git was built with NO_PERL_CPAN_FALLBACKS,
meaning that whoever built it promised to provide this module.

You're seeing this error because they broke that promise, and we can't
load our fallback version, since we were asked not to install it.

If you're seeing this error and didn't package Git yourself the
package you're using is broken, or your system is broken. This error
won't appear if Git is built without NO_PERL_CPAN_FALLBACKS (instead
we'll use our fallback version of the module). at /usr/share/perl5/Git/LoadCPAN.pm line 76. BEGIN failed--compilation aborted at /usr/share/perl5/Git/LoadCPAN/Mail/Address.pm line 8.
Compilation failed in require at /usr/libexec/git-core/git-send-email line 36.
BEGIN failed--compilation aborted at /usr/libexec/git-core/git-send-email line 36.

I had to install "Mail::Address" manually using cpan.

You shouldn't have had to do that:

$ cygcheck -l git | grep Mail/Address.pm
/usr/share/perl5/FromCPAN/Mail/Address.pm
/usr/share/perl5/Git/LoadCPAN/Mail/Address.pm

Do you have these files?

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple