atrodo / App-MechaCPAN

Mechanize the installation of CPAN things
Other
2 stars 2 forks source link

Could not execute 'git archive --format=tar.gz ...' #6

Closed eserte closed 6 years ago

eserte commented 6 years ago

On CentOS6 I see the following test failure:

# Error: '
# Could not execute 'git archive --format=tar.gz --remote=/var/tmp/cpansmoker-1023/2018012112/mechacpan_yb9Nsx0J master'
# PID: 28702    Exit Code: 1        
# 
# fatal: sent error to the client: git upload-archive: archiver died with error
# remote: fatal: Unknown archive format 'tar.gz'
# remote: git upload-archive: archiver died with error
# 
#  at /home/cpansand/.cpan/build/2018012112/App-MechaCPAN-0.20-1/blib/lib/App/MechaCPAN/Install.pm line 740.
# '

#   Failed test 'Got 'https://github.com/p5sagit/Try-Tiny.git''
#   at t/22_install__get_targz.t line 49.
# Error: '
# Could not execute 'git archive --format=tar.gz --remote=/var/tmp/cpansmoker-1023/2018012112/mechacpan_QtWO8VBa v0.24'
# PID: 28821    Exit Code: 1        
# 
# fatal: sent error to the client: git upload-archive: archiver died with error
# remote: fatal: Unknown archive format 'tar.gz'
# remote: git upload-archive: archiver died with error
# 
#  at /home/cpansand/.cpan/build/2018012112/App-MechaCPAN-0.20-1/blib/lib/App/MechaCPAN/Install.pm line 740.
# '

#   Failed test 'Got 'https://github.com/p5sagit/Try-Tiny.git@v0.24''
#   at t/22_install__get_targz.t line 49.
# Looks like you failed 2 tests of 14.
t/22_install__get_targz.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/14 subtests 

Maybe this is related to the git version installed here, which is:

git version 1.7.1
atrodo commented 6 years ago

It does appear to be related to git 1.7.1 (or rather, before 1.7.7). The code assumed that git archive can do tar.gz files, which git could not before 1.7.7. I am changing the code so that it will act like git doesn't exist if the version is before 1.7.7.