-
Notifications
You must be signed in to change notification settings - Fork 1k
Errors in svn checkout
do not propagate correctly
#416
Comments
From @sdboyer on March 22, 2017 11:55 Hmm, odd. (thanks for digging!) Honestly, I haven't looked closely at the svn stuff (it's recently added, we didn't really support it before). All of the error handling there should follow a pretty standard pattern (that certainly does catch non-0 exit codes), so at first glance, it seems most likely that what we have just doesn't quite follow the pattern correctly. |
From @jstemmer on April 1, 2017 23:13 There are a few things happening here. I'm fairly certain that the reason that I don't know why you saw an SSL verification error, it works for me currently. You had to dig a bit to find this, because the errors returned from the And finally, the reason for the nil pointer panic is that these tests don't stop when encountering errors, instead of calling |
From @jstemmer on April 1, 2017 23:43 Sorry, it looks like I was mistaken. I've ran a few tests with invalid repo urls and the original error only contains the string |
From @spenczar on March 20, 2017 22:41
TestSvnRepo
panics for me on the current master:This panic is happening because even though the
err = repo.Get()
line at L45 doesn't return an error, it is, in fact, failing. I hacked into the internals to print the command output, and I saw this:Is it that the
svn
command exits with 0? No, it exits with 1:So it appears that the failure isn't getting correctly plumbed through.
Copied from original issue: sdboyer/gps#200
The text was updated successfully, but these errors were encountered: