Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Git-Wrapper CPAN distribution.

Report information
The Basics
Id: 58519
Status: resolved
Priority: 0/
Queue: Git-Wrapper

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.009
Fixed in: (no value)



Subject: git-moo based test fails due to string match
# Failed test at t/basic.t line 49. # fatal: cannot exec 'git-moo': Permission denied # ' # doesn't match '(?-xism:is not a git command)' After a quick diagnosis, the reason is as follows: Here is a trace of all the attempted bin paths that it searches for git-moo. /bin/git /sbin/git /usr/bin/git /usr/libexec/git-core/git-moo /usr/libexec/paludis/utils/git-moo /bin/git-moo /sbin/git-moo /usr/bin/git-moo /usr/sbin/git-moo /opt/bin/git-moo /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4/git-moo /opt/blackdown-jdk-1.4.2.03/bin/git-moo /opt/blackdown-jdk-1.4.2.03/jre/bin/git-moo /usr/kde/3.5/bin/git-moo /usr/kde/4.1/bin/git-moo /usr/kde/4.2/bin/git-moo /usr/kde/4.4/bin/git-moo /usr/lib64/subversion/bin/git-moo /usr/games/bin/git-moo Now what follows is possibly an error with my setup, but anywho: when it traverses into /usr/games/bin/ , before git even gets a chance to work out if 'git-moo' exists or not, its given the "permission denied". As follows: Show quoted text
> /usr/games/bin/git-moo
bash: /usr/games/bin/git-moo: Permission denied Thanks in advance =)
It appears to be partially Git at fault: PATH="/some/fake/dir:$PATH" git moo git: 'moo' is not a git command. See 'git --help'. Did you mean this? log PATH="/some/fake/dir:$PATH" git-moo bash: git-moo: command not found PATH="/usr/games/bin/:$PATH" git-moo bash: git-moo: command not found PATH="/usr/games/bin/:$PATH" git moo fatal: cannot exec 'git-moo': Permission denied Which to me seems to be the wrong response.
PATH="/usr/games/bin/:$PATH" strace -f -e trace=file git moo execve("/usr/bin/git", ["git", "moo"], [/* 90 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/libz.so.1", O_RDONLY) = 3 open("/lib/libpthread.so.0", O_RDONLY) = 3 open("/lib/libc.so.6", O_RDONLY) = 3 Process 3991 attached [pid 3991] execve("/usr/libexec/git-core/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/games/bin//git-moo", ["git-moo"], [/* 90 vars */]) = -1 EACCES (Permission denied) [pid 3991] execve("/home/kent/.perl/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("~/bin//git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/local/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/local/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/opt/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/opt/blackdown-jdk-1.4.2.03/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/opt/blackdown-jdk-1.4.2.03/jre/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/3.5/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/3.5/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.1/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.1/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.2/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.2/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.4/sbin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/kde/4.4/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) [pid 3991] execve("/usr/lib64/subversion/bin/git-moo", ["git-moo"], [/* 90 vars */]) = -1 ENOENT (No such file or directory) fatal: cannot exec 'git-moo': Permission denied Process 3991 detached --- SIGCHLD (Child exited) @ 0 (0) ---
Suggested Patch: ( WorksForMe™ )
On Sat Jun 19 07:30:03 2010, KENTNL wrote: Show quoted text
> Suggested Patch: ( WorksForMe™ )
http://github.com/kentfredric/Git-Wrapper/commit/856ed03808bddb270f5ed29f7ab7deb8913c38c2 ( Doh )
I also have a problem with this same test because of the gyrations it goes through to check which version of git is running to determine what the correct "error response" should be so that the tests pass. For me, the test fails because I have git version '1.7.0' which falls on the wrong side of the check $git->version lt '1.7' Here's a patch that removes the git-moo test because it is troublesome. http://github.com/perlpilot/Git- Wrapper/commit/c41798f1bb8eeada3c41f9099b73d36bfff05abd
On Wed Jul 14 12:30:39 2010, duff wrote: Show quoted text
> I also have a problem with this same test because of the gyrations it goes > through to check which version of git is running to determine what the > correct "error response" should be so that the tests pass. For me, the > test fails because I have git version '1.7.0' which falls on the wrong > side of the check $git->version lt '1.7' > > Here's a patch that removes the git-moo test because it is troublesome. > > http://github.com/perlpilot/Git- > Wrapper/commit/c41798f1bb8eeada3c41f9099b73d36bfff05abd
Winner. Test removed.