New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix git SSH clone in docker container #172
Fix git SSH clone in docker container #172
Conversation
…l git url validation.
@michelvocks @leberknecht Alright. What do you guys think? We are checking the host key, but if there is a problem with it, we move on but Log a Warning error message. In order for this to be visible on the UI though, we would need to return the error, which stops the flow right there. Which is not what we want if I understand correctly. |
Codecov Report
@@ Coverage Diff @@
## master #172 +/- ##
==========================================
+ Coverage 66.52% 66.78% +0.25%
==========================================
Files 33 33
Lines 2593 2628 +35
==========================================
+ Hits 1725 1755 +30
+ Misses 654 650 -4
- Partials 214 223 +9
Continue to review full report at Codecov.
|
I'll add a test soon... daughter woke up.. :) |
This is perfect in my opinion. Thanks @Skarlso 🤗 I gave it a try in a docker container but it fails with the following panic:
I think the problem is that |
@michelvocks intersting |
Ups... So... Interesting. Thanks! I'll check it out and fix it. 😊 |
Ah, I see. I thought it would just ignore missing files. But it doesn't. :) Fixing it. :) |
Oh I see what you mean... |
@michelvocks It was worse than that. :D I was checking in the wrong place. Basically, since the operation failed with an invalid host key.. I have to retry said operation again with an Auth that is using an Ignore. It looks a bit more verbose this way though, check it out. I'll push in a bit. |
It works now @Skarlso. I did some minor changes to make the logging a bit more verbose and added an extra small check. |
@michelvocks looks good. I'm unsure yet how I'll test this as it finds my local known_hosts file. I'll try to mock the hostname from where it will clone. Maybe that'll work. |
Note: Working on writing / fixing test for GitLS |
@michelvocks first passing test!!! :))))))) |
@michelvocks alright. Good as it gets. decrease by 0.2%. :D |
Yay, I managed to increase coverage. :) |
Thanks @Skarlso. Awesome job! 🤗 |
Fixes #149
@Skarlso Feel free to merge if it's okay from your side. 🤗